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
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
> 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
> 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
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
--
/\/\/\/\/\/\/\/
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
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
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
>>> 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
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:
> >>
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
> 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
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
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
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
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
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
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
--
/\/\/\/\/\/\/\
18 matches
Mail list logo