Status
Not open for further replies.

rahul_bhageria

Right off the assembly line
how to create a batch file to delete a particular file without asking permission and then display a particular message?
 

PcEnthu

Linux Learner
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
 
Status
Not open for further replies.
Top Bottom