Hi
I have the following bat command to 7zip my files but I need help in tweeting it a bit. I have
for /d %%X in (C:\Downloads) do "c:\Program Files\7-Zip\7z.exe" a "%%X.zip" "%%X\"
This is good as it zips the files but I need if poss something pop up telling me to rename the folder once it zipped and then password protecting it.
If I can do that maybe something like a text or message box advising to rename and password protect folder.
Thanks
Need help on finishing off a .bat command
Moderator: DosItHelp
Re: Need help on finishing off a .bat command
You were told in your previous question how to get prompted to password protect the zip file.
Re: Need help on finishing off a .bat command
sorry misread it
Re: Need help on finishing off a .bat command
Sorry to be a pain
Its zipping the file OK and saving it in C:/Downloads.ZIP
How do I change it so it saves in a folder on C:/ called ZIPPED DOWNLOADS and puts the zipped folders in there?
Its zipping the file OK and saving it in C:/Downloads.ZIP
How do I change it so it saves in a folder on C:/ called ZIPPED DOWNLOADS and puts the zipped folders in there?
Re: Need help on finishing off a .bat command
So it is naming the zip file the name of the directory it is zipping. The folder name it is zipping is stored in this variable: "%%X".
So what would you do to this code: "%%X.zip" to add the output path to it?
Penpen showed you how to do it in your last thread.
viewtopic.php?f=3&t=8502#p56385
So what would you do to this code: "%%X.zip" to add the output path to it?
Penpen showed you how to do it in your last thread.
viewtopic.php?f=3&t=8502#p56385