Computing.Net > Forums > Disk Operating System > I want to make a bat file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

I want to make a bat file

Reply to Message Icon

Name: sean thorkilsen
Date: March 31, 2000 at 10:56:24 Pacific
Comment:

I want to know the dos commands to make a bat file , so i deletes all the mp3s on my hard drive accept for "my folder"when I start up my computer

thanks



Sponsored Link
Ads by Google

Response Number 1
Name: StormWlf
Date: March 31, 2000 at 11:04:18 Pacific
Reply:

a bat file is a text file tha runs a series of commands
You can use notepad or edit in dos
Try looking at deltree /?
for the command.


0

Response Number 2
Name: Preston
Date: March 31, 2000 at 22:19:33 Pacific
Reply:

Well, you have to know where the mp3 files are in order to write a *.bat file to erase them. Let's assume all the mp3 files are in a directory named "music". Here is the DOS commands to use.

c:
cd \music
erase *.mp3

You can use edit.com or notepad and copy these lines. Then save the program to the Windows directory under a name you'll remember, like "erase.bat".

The first line, c:, is the DOS command to change to the c: hard drive.
The second line, cd \music is the DOS command to change directory to the \music directory.
The third command erase all files ending in mp3.

Preston


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: I want to make a bat file

I want to make a custom boot disk - help www.computing.net/answers/dos/i-want-to-make-a-custom-boot-disk-help/11191.html

How to Make a .bat file 2 run programs on usb www.computing.net/answers/dos/how-to-make-a-bat-file-2-run-programs-on-usb/16975.html

Finding a file using a BAT file? www.computing.net/answers/dos/finding-a-file-using-a-bat-file/5062.html