Jump to content

Recommended Posts

Posted

Ok so I have been having trouble getting a rather simple batch file to work. All it's suppose to do is delete all .ini and .jpg files out of my music folders but everytime I run it it doesn't delete anything. This is most probably 'n logic error on my side but I have been doing some research on various sites but I can't find any problem.

Here is what I have atm :

del /F /S "D:\Stuff\Media\Music\*.ini"

del /F /S "D:\Stuff\Media\Music\*.jpg"

Thanks :)


Posted

Add the PAUSE command as a last line of your file in order to read any output messages!

Also there's little reason to expect jpg and/or ini files to be read only thus negating the /f switch.

I would also suggest that you navigate to the required parent directory then invoke your deletions using the appropriate switches.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...