I tried to find the answer to this in several places and failed, so here it goes:

I have a directory, say, "Project" which has a lot of sub directories and files. I want to make a batch program which just zips this Project directory. But also, I want to skip just a few particular files and just one folder.

I figured that I have to iterate all items and add them to zip one by one, and I dont know how to do this.. or is there a better way to do this?

I tried this:

@ECHO OFF
start c:\"Program Files (x86)"\WinRAR\WinRAR.exe %CUR-DATE%.ZIP Project\*.*
pause

just to see if it works.. Winrar is installed in that location.. for starters I thought I would see if zipping all files work.. but it dint work, no error, nothing, it just runs and quits.

Any Idea where I should start?

Many thanks!

link|improve this question
Do you get any output if you run that on the command line? In your script I would also suggest you put the quotes around the full path for the exe "c:\...\winrar.exe" – Clint Aug 19 '10 at 16:44
thanks, i tried this, it worked after i changed the path!! – iamserious Aug 27 '10 at 10:32
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.