find a file, rename it, then rename back again...
Posted: 11 Jan 2012 05:18
Hi Guys
Just hoping to see if this is possible in batch.....
I run a "clean up script" that does various things, cleans junk, runs cmd line defrag util, also a piece of freeware that deletes
tmp files.
However its come to light that two files with extentions of .tmp & .bak are being removed which are causing issues with some
software.
The clean up util has no way of setting exceptions (cant find another cmd tool either with it) so i was hoping to set a command
to find the files, rename them, then have the clean up part of the script run then have another command to run to find them again and rename them back.
If there any example scripts to try with that would be excellent.
Thanks in advance.
Just hoping to see if this is possible in batch.....
I run a "clean up script" that does various things, cleans junk, runs cmd line defrag util, also a piece of freeware that deletes
tmp files.
However its come to light that two files with extentions of .tmp & .bak are being removed which are causing issues with some
software.
The clean up util has no way of setting exceptions (cant find another cmd tool either with it) so i was hoping to set a command
to find the files, rename them, then have the clean up part of the script run then have another command to run to find them again and rename them back.
If there any example scripts to try with that would be excellent.
Thanks in advance.