Need a .bat file to execute a folder

Closed
subhanu Posts 1 Registration date Friday 16 March 2018 Status Member Last seen 16 March 2018 - 16 Mar 2018 à 10:38
 Blocked Profile - 16 Mar 2018 à 16:48
Hello,
Requirement:
To zip a folder and it contents and to append a DD-MM-YYYY to it.

Source of zip file :"C:\Program Files\7-Zip\7z.exe"
Folder to zip:C:\CTM\CTMLOG

This CTMLOG file is having with some date , so it need to be zipped with DD-MM-YYYY

Once action done, it should be looked like CTMLOG<<DD-MM-YYYY>>.zip


Thanks for your help on this.

Subhanu


1 response

Blocked Profile
16 Mar 2018 à 16:48
7Zip is very versatile, and comes with a command line interface.

In case you need documentation, it can be found here:
https://www.7-zip.org/faq.html

Are you having issues with the date variables in DOS?

That can be tough. Let us know what the issue is ONE by ONE, and we can help.