Link to home
Start Free TrialLog in
Avatar of marcalfa1
marcalfa1

asked on

MS-DOS script to delete files

I have a text file which contains a list of filenames to be deleted in a specific folder on my Hard Drive.  Is there a way I can write a script to look in my text file and delete all the files on my drive specified within my text file.

I'm new to scripting and hoping this makes sense.
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I usually use the first uppercase letter of the stuff I expect from the file, in this case it are paths and filenames, so my choice would be %%F or %%P.

The del commandline switches are a good point, I've thought about them but had posted already.