Question Locked

Creating a Batch file to zip a file

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi
I'm after getting batch file that would zipped a file up. does anyone know a batch that would do this?

3 replies

by sajchurchey

My WinXP installation has a zip command that you could fool around with to create your batch file. I don't know EXACTLY what you want to do so you may need to add other logic to your batch file. I'm not sure if this command is included in other versions of Windows, but I imagine so.

If the command is not available, you can download a version of zip.exe from:

http://www.info-zip.org/Zip.html

by dumphrey

its freeware. Open the 7zip folder in program files, and copy 7z.exe to c:\windows\system32 (or modify default path to use this folder).

basic format is 7z a archivename.zip folderNameOrFileToZip

This discussion is closed to new replies.