Hello,
I am trying to zip up a file using a date as part of the filename.
My Script
The folder I am zipping is named by the date.
I would like to name the file Test_Date.
strfmt sZipDir "zip -r Test %02d%02d%02d^M" iYear iMonth iDay
I have been experimenting all morning but I have not found a workable solution yet.
I tried this but it does not work:
strfmt sZipDir "zip -r Test_%02d%02d%02d %02d%02d%02d^M" iYear iMonth iDay
It does not read the second date section.
Do I need to define my required name as a new string? If so, how would I pull it all together when I produce the Zip command?
TIA
I am trying to zip up a file using a date as part of the filename.
My Script
The folder I am zipping is named by the date.
I would like to name the file Test_Date.
strfmt sZipDir "zip -r Test %02d%02d%02d^M" iYear iMonth iDay
I have been experimenting all morning but I have not found a workable solution yet.
I tried this but it does not work:
strfmt sZipDir "zip -r Test_%02d%02d%02d %02d%02d%02d^M" iYear iMonth iDay
It does not read the second date section.
Do I need to define my required name as a new string? If so, how would I pull it all together when I produce the Zip command?
TIA