Link to home
Start Free TrialLog in
Avatar of hpsuser
hpsuser

asked on

batch files to automate "Compressed (Zipped) Folder" tasks

I am running Windows XP, and frequently use the feature "send to Compressed (Zipped) Folder" to move big files.

Is there a way to write batch files to automate compressing and extracting these files?

Thanks
Avatar of sirbounty
sirbounty
Flag of United States of America image

Not "those" files...you can use a vbscript to do that.
For a pure batch file, you'd need to grab the command-line versions of pkzip, and pkunzip...
Avatar of RubenvdLinden
RubenvdLinden

I really like the command-line version of PowerArchiver (PACL), which can be found at http://www.powerarchiver.com/
It comes with a small manual to help you understand all the different commands and parameters, the exit codes (for batch file errorlevel codes) and some examples.

I hope this helps.
Avatar of hpsuser

ASKER

So it sounds like I'd have to use a different tool then what we're currently using?
Unless you want to script the process (send to compressed folder) using vbscript...I have some sample code, if you're interested...
Avatar of hpsuser

ASKER

I've never used vbscript, though if it's easy to implement and all I'd need to do is change the directories or files names I can give it a try...Thanks
ASKER CERTIFIED SOLUTION
Avatar of sirbounty
sirbounty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hpsuser

ASKER

thanks, we've just launched the system that this will involve, when I get a chance I'll come back to this to implement.
Avatar of hpsuser

ASKER

SirBounty - I forgot about this one, finally got around to trying it and it worked, thanks for your help.