1. Open notepad and copy the following code in the file
Code:
@echo off
del /y %1
echo <Custom message>
2. Save the file as "mydel.bat" Include the double quotes in the filename
3. From the command prompt issue the following command
Code:
mydel somefile.txt
__________________
Its better ti keep your mouth shut and be thought as a fool, than to open and clear all doubts - [Source] Comments section of DistroWatch.Com