
I am trying to write a batch file that will automate zipping a number of files to a folder whilst deleting the old ones in it. I have downloaded the command line add on for win zip but need to know the batch file.
Hope you can help me
J
Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!
"C:\Program Files\WinZip\WZZIP.EXE" ziptest.zip "C:\Documents and Settings\folder\Desktop\test" pause del /Q "c:\documents and settings\folder\desktop\test\" pause
"C:\Program Files\WinZip\WZZIP.EXE" -a -m ziptest.zip "C:\Documents and Settings\dsenette\Desktop\test" pausethis will do it all in one swoop..though...it still hase the pause from wzzip execution...this does however...remove the original Test folder from the machine
"C:\Program Files\WinZip\WZZIP.EXE" ziptest.zip "C:\Documents and Settings\folder\Desktop\test" pause del /Q "c:\documents and settings\folder\desktop\test\" pause
in the above code you can remove the pause...i put those so i could troubleshoot... the first line executes the winzip command....you may not need the whole path for it..but i did because of some network settings....that causes a programatical pause as the wzzip exe asks for confirmation....the second line...deletes without question the files contained in the folder"C:\Program Files\WinZip\WZZIP.EXE" -a -m ziptest.zip "C:\Documents and Settings\dsenette\Desktop\test" pausethis will do it all in one swoop..though...it still hase the pause from wzzip execution...this does however...remove the original Test folder from the machine
Edited by Jaytee23, 10 January 2006 - 05:56 AM.
0 members, 1 guests, 0 anonymous users
Community Forum Software by IP.Board
Licensed to: Geeks to Go, Inc.