Tuesday, January 25, 2011

How to create a batch file in windows?

Here is the steps to create a batch file that will delete all the files from a specified folder.
Step 1:
Open Notepad
Step 2:
Copy the below code and paste it in the notepad.
cd\
cd C:\Program Files\Fewlines4biju\
del /Q *.*
echo Deleting Files
echo File Deleted
exit

Save the notepad with the extension as bat like fewlines4biju.bat
Step 3:
Run the batch file and it will delete all the files within the folder Fewlines4biju

For more information on batch file commands you can visit here.

No comments:

Post a Comment