Re: batch deleting backup files

2007-08-30 Thread Syed Zaeem Hosain
Gilding the lily further: you could add another parameter %2% to the dir and del commands to put in the "/S" ... as long as you also remembered to use the %1% for the top of the directory that you want the backups to be deleted in - and did not use it accidentally with a file name or directory nam

batch deleting backup files

2007-08-30 Thread Syed Zaeem Hosain
Gilding the lily further: you could add another parameter %2% to the dir and del commands to put in the "/S" ... as long as you also remembered to use the %1% for the top of the directory that you want the backups to be deleted in - and did not use it accidentally with a file name or directory name

Re: batch deleting backup files

2007-08-30 Thread Syed Zaeem Hosain
> Perhaps adding a > master path and /s to catch the subdirectories would do the trick Yes, works if the master path is consistent and does not cause problems for any non-FM files below it - not likely, but you never know! Yet another possibility ... since the folders may be different for differ

batch deleting backup files

2007-08-30 Thread Syed Zaeem Hosain
> Perhaps adding a > master path and /s to catch the subdirectories would do the trick Yes, works if the master path is consistent and does not cause problems for any non-FM files below it - not likely, but you never know! Yet another possibility ... since the folders may be different for diffe

batch deleting backup files

2007-08-30 Thread Dave Reynolds
Hi Folks Someone posted the text for a batch file (or similar) recently for cleaning up backup files from a folder. I thought I had archived that information, but now I need it, I can't find it. I'd appreciate it if someone could send me the the information. Thanks Dave -- /\/\/\/\/\/\/\/

Re: batch deleting backup files

2007-08-30 Thread Chris Borokowski
In the shortcut, you might want to specify the "Start In" directory. You can do this by finding your batch file, right-clicking and selecting "Create Shortcut," then right-clicking on the Shortcut and filling in the "Start In" field with the desired target directory. --- Mike Wickham <[EMAIL PROTE

Re: batch deleting backup files

2007-08-30 Thread Rene Stephenson
It's been a while since I messed with .BAT, but... Perhaps adding a master path and /s to catch the subdirectories would do the trick: @echo off echo. echo Deleting the following files from the current directory: cd [MainPathForFMfiles] dir *.backup.* *.lck /s echo. del *.backup.* *.lck

batch deleting backup files

2007-08-30 Thread Rene Stephenson
It's been a while since I messed with .BAT, but... Perhaps adding a master path and /s to catch the subdirectories would do the trick: @echo off echo. echo Deleting the following files from the current directory: cd [MainPathForFMfiles] dir *.backup.* *.lck /s echo. del *.backup.* *.lck

batch deleting backup files

2007-08-30 Thread Mike Wickham
>>> and that will do the trick when you execute the batch program in a >>> DOS window or from the Run command line. >> >> Even easier, put a shortcut to the batch file on your desktop or >> elsewhere, and click on it to run it. > > Uh ... I think that is not gonna work too well, if you are in the

batch deleting backup files

2007-08-30 Thread Chris Borokowski
In the shortcut, you might want to specify the "Start In" directory. You can do this by finding your batch file, right-clicking and selecting "Create Shortcut," then right-clicking on the Shortcut and filling in the "Start In" field with the desired target directory. --- Mike Wickham wrote: > >>

Re: batch deleting backup files

2007-08-30 Thread Mike Wickham
and that will do the trick when you execute the batch program in a DOS window or from the Run command line. Even easier, put a shortcut to the batch file on your desktop or elsewhere, and click on it to run it. Uh ... I think that is not gonna work too well, if you are in the wrong director

batch deleting backup files

2007-08-30 Thread Mike Wickham
> Put the following into a file (named with extension .BAT): > > @echo off > echo. > echo Deleting the following files from the current directory: > dir *.backup.* *.lck > echo. > del *.backup.* *.lck > > and that will do the trick when you execute the batch program in a > DOS window or from the Ru

Re: batch deleting backup files

2007-08-30 Thread Syed Zaeem Hosain
Hi, Mike. Mike Wickham wrote: Put the following into a file (named with extension .BAT): @echo off echo. echo Deleting the following files from the current directory: dir *.backup.* *.lck echo. del *.backup.* *.lck and that will do the trick when you execute the batch program in a DOS window o

batch deleting backup files

2007-08-30 Thread Syed Zaeem Hosain
Hi, Mike. Mike Wickham wrote: >> Put the following into a file (named with extension .BAT): >> >> @echo off >> echo. >> echo Deleting the following files from the current directory: >> dir *.backup.* *.lck >> echo. >> del *.backup.* *.lck >> >> and that will do the trick when you execute the batch

Re: batch deleting backup files

2007-08-30 Thread Mike Wickham
Put the following into a file (named with extension .BAT): @echo off echo. echo Deleting the following files from the current directory: dir *.backup.* *.lck echo. del *.backup.* *.lck and that will do the trick when you execute the batch program in a DOS window or from the Run command line. E

Re: batch deleting backup files

2007-08-29 Thread Syed Zaeem Hosain
Put the following into a file (named with extension .BAT): @echo off echo. echo Deleting the following files from the current directory: dir *.backup.* *.lck echo. del *.backup.* *.lck and that will do the trick when you execute the batch program in a DOS window or from the Run command line. Z

batch deleting backup files

2007-08-29 Thread Syed Zaeem Hosain
Put the following into a file (named with extension .BAT): @echo off echo. echo Deleting the following files from the current directory: dir *.backup.* *.lck echo. del *.backup.* *.lck and that will do the trick when you execute the batch program in a DOS window or from the Run command line. Z

batch deleting backup files

2007-08-29 Thread Dave Reynolds
Hi Folks Someone posted the text for a batch file (or similar) recently for cleaning up backup files from a folder. I thought I had archived that information, but now I need it, I can't find it. I'd appreciate it if someone could send me the the information. Thanks Dave -- /\/\/\/\/\/\/\