Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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:

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

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!

share|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
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.