Page 1 of 1

.bat file to create rar archive with directory name

Posted: January 17th, 2011, 1:02 pm
by RiNCEWiND
Can anyone tell me how to create .bat file which will create rar archive with directory name? I am using winrar and Windows Server 2003...

Thanks in advance...

Re: .bat file to create rar archive with directory name

Posted: January 24th, 2011, 6:26 pm
by fanniecat
It depends what you are trying to do

You can do this without a script pretty easily, just select all the folders then right-click and select "add to archieve..."a dialog box will apear...select files tab and check "put each file to seperate archieve"...and click OK (this actually puts each subfolder to a separate archive (rar file), not each file)

If you need to put that functionality into a script, I don't know how, so hopefully someone else will teach us.