5 replies
by joseph moore
I have the syntax to do this in a Windows BAT file. I don't know if this helps you or not, though.
There is no system time variable. But, you can run the following to do what you want:
for /f "tokens=1-4 delims=/ " %%i in ('date /t') do copy YOURFILE.ZIP %%l-%%j-%%k.ZIP
That would make a copy of YOURFILE.ZIP and call it 2002-09-03.ZIP
by wlewis
by rrv
I understand that you want to create unique file name for zipping. Use file system object. if a file of a given name is found, append an increment integer to the file and search again. This logic works fine and i'm using in many places.
RV
by wlewis
by wlewis
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending