Trying to create a script that will rename a file with a prefix of the file modified date.
Backup01.log = 2008-06-12 03`58pm backup01.txt
I was able to get this to work in a cmd window with:
BRC32.exe /APPENDDATE:M:P:" ":-:10:"%Y-%m-%d %I`%M%p" /PATTERN:"backup*.log" /FIXEDEXT:".txt" /EXECUTE
I also tried useing the ~ between the hours and minutes both worked fine.
but putting that command in a .cmd file or .bat file would not work.
HOWEVER, using a date code of 9 worked ok.
BRC32.exe /APPENDDATE:M:P:" ":-:9 /PATTERN:"backup*.log" /FIXEDEXT:".txt" /EXECUTE
The problem is that creates a date & time code that is very hard to read with no formatting or spaces....
My hunch is that the BRC32 version is older than the windows version and doesn't have the date code 10 option, but if that is the case, why does it work from the cmd line manually?
Or is there a way to use a cmd line with the new version?
Great program and even better documentation - easy for an everyday user to get their head around....
SEPP!