I use simple windows batch scripting to automate some software development I do. The one thing that is hanging me up is the final step where I zip all the files up into a self-extracter. I want to be able to insert the current date into the resulting file's name. I am using Z-7ip to make the self-extractor and this is a snippet of the code at that point in the script:
Thanks in advance for your help!!!!
Right now I have to go back after the script finishes and change the name newarchive_v2.exe to newarchive_20040820_v2.exe. How can automate this process so that the batch file that makes the .exe file can insert the date into the name of the resulting .exe file? Also, I want the format to be YYYYMMDD for the date part of the name.cd D:\
"C:\Program Files\7-Zip\7z.exe" a -sfx7zC.sfx -r -mx9 -m0=LZMA:mf=bt4b=32M:fb=139:a=2 -ms=on -mf=on -mhcf=on -mhc=off newarchive_v2.exe archives\*
Thanks in advance for your help!!!!