Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi:
We would like to save a copy of a qvw file on a daily basis. I was thinking about writing a windows batch job that will automate the copying of the files. The following works fine but I would like to modify it a little.
copy d:\src\finename.qvw s:\dest\%random%-x.qvw
The modification I would like concerning the above is the following: instead of a random number I would like to have a timestamp (YYYYMMDD) to ease the process of finding the appropriate file back.
Does anybody have an idea how to accomplish that?
Jochem
SET YYYYMMDD=%DATE:~6,4%%DATE:~3,2%%DATE:~0,2%
copy d:\src\filename.qvw s:\test\%YYYYMMDD%-x.qvw
Rgds,
Sébastien
Hi,
You can copy your file and rename it:
copy d:\src\finename.qvw s:\dest\
ren s:\dest\filename.qvw filename%DATE:/=-%.qvw
Hi,
You can use this:
COPY d:\src\filename.qvw s:\test\%date:~10,4%-%date:~4,2%-%date:~7,2%_filename.qvw
Attention to date format. This is US format.
Regards,
Mihai