Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Duplicate Questions

http://superuser.com/questions/145058/how-to-compress-files-with-batch-file

Using compact.exe didn't do what I wanted. I'd like to have an archive file created so that the files can be retreived. This is intended for backup purposes.

This question seems to be asked several times, but each time the response is to download a third party CLI and add it to the path which will allow for command line access. However, this will not work due to the environment that I'm working in, so my question is, is there a way to compress a file and have the contents put in a backup archive file?

<command> -d /directory/to/compress "compressedContents.zip"
...
compressedContents.zip //now contains all /directory/to/compress contents

An alternative, is there a way in Power-shell to compress a file?

Thanks!

share|improve this question
1  
@heavyd Thanks - found this link from that question. The accepted answer actually requires a cmdlet extension to be added. blogs.msdn.com/b/dotnetinterop/archive/2008/06/26/… I'm still looking to create a zip file directly from cmd prompt so that I don't have to enable execution policy for powershell. – Eric U. Jul 6 '10 at 17:48

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

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.