The tag has no wiki summary.

learn more… | top users | synonyms (1)

85
votes
8answers
78k views

How to zip/unzip files in Powershell?

Is there a one-liner that will zip/unzip files (*.zip) in PowerShell?
76
votes
5answers
194k views

Does Windows have a built-in ZIP command for the command line?

Since Windows Explorer (since at least Windows XP) has some basic support for ZIP files, it seems like there should be a command-line equivalent, but I can't seem to find any sign of one. Does ...
24
votes
7answers
18k views

Unzipping files that are flying in through a pipe

Can I make unzip or any similar programs work on the standard output? The situation is I'm downloading a zip file, which is supposed to be unzipped on the fly. Related issue: ...
12
votes
2answers
9k views

How can I zip/compress a symlink?

Is it possible and how can I zip a symlink from a linux shell?
12
votes
3answers
16k views

How to unzip files bigger than 4GB?

I'm using RHEL 5.6 and unzip-5.52-3.el5. I'm trying to unzip a big file, but I get the error: unzip -o test.zip -d unzip/ error: Zip file too big (greater than 4294959102 bytes) Archive: test.zip ...
5
votes
4answers
850 views

How to “undo” an “unzip” performed in terminal / CLI?

I know this is possible with a botched unTAR, although I can't recall the exact command.... but is it possible to "undo" a recent "unzip" command, in this case, using the mac terminal? This is using ...
4
votes
3answers
10k views

How to compress files in Windows in batch file?

I can compress files or folders in Windows from GUI by right clicking and selecting "Send to .. Compressed (zip) file..". Is it possible to do same in batch file?
4
votes
2answers
3k views

Why does the .NET Folder.CopyHere Method not allow dialog suppression for .ZIP files when run within a SQL Server Agent PowerShell job step?

I am using PowerShell in a SQL Server Agent job step to automate the extraction of .ZIP file contents to a directory. Based upon highest-voted answer on this question: How to zip/unzip files in ...
4
votes
2answers
5k views

Zipping only files using powershell

I'm trying to zip all the files in a single directory to a different folder as part of a simple backup routine. The code runs ok but doesn't produce a zip file: $srcdir = "H:\Backup" $filename = ...
4
votes
1answer
1k views

Why can't I copy .zip files from a server to a server in a different domain?

At work, we're using a Windows Server 2008 R2 VM as our build server. At the end of the build process for any of our projects, we copy the packaged deployment files to a folder on the server where ...
3
votes
2answers
403 views

Is it safe to zip/tar hotcopied svn repositories?

We want to store our backups of our svn repositories as a flat file. We'd like to tar/zip the whole hotcopied directory. I know that we could dump it to a flat file but let's pretend that we'd rather ...
3
votes
2answers
217 views

Unzip a bunch of zips into their own directories

I have a bunch of zip files I want to unzip in Linux into their own directory. For example: a1.zip a2.zip b1.zip b2.zip would be unzipped into: a1 a2 b1 b2 respectively. Is there any easy way to ...
3
votes
3answers
1k views

Automatically Zip/Manage SQL Server 2005 backups

Is there a nice way to have SQL Server 2005 run nightly backups that are automatically zipped with only the last n backups kept? I know the agent can perform nightly backups, but I think the tricky ...
3
votes
1answer
62 views

Linux zip tool that supports mutithreading [closed]

The only one I know is 7za but it shows speed similar to zip. I made a quick test for zip, 7za (with -mmt8) and jar. Results are almost same, and 7za is lowest one (what is strange 'cos it should run ...
3
votes
1answer
1k views

Unzip without path

I would expect the following command to extract the contents of the top directory in the zip file to the destination directory: unzip file.zip topdir/\* -d destdir However, what I get is ...
3
votes
1answer
5k views

How to compile PHP Version 5.2.13 with zip support on CentOS?

Hi i am having a big problem, i have a vps with centos installed on it. But i have a script which needs php zip library i checked on php.net it says "In order to use these functions you must compile ...
3
votes
1answer
103 views

How can I enlist the content of a zip archive, but only the first level?

I have a big zip file and I want to know what it's contain. I know I can run: zipinfo file.zip but the output is too verbose and there are a lot of files in the sub-directories. I want to see a ...
3
votes
1answer
459 views

Adding Utilities to /bin/bash (chrooted)

I have my hosting users on /bin/bash (chrooted) for SFTP. How do I add unzip to the list of utilities they can execute? Running Plesk Panel 9.5.2 on CentOS
3
votes
3answers
2k views

Corrupt Zip file when downloaded from Apache with Internet Explorer

I have a zip file being served by Apache with mod_gzip compression turned on. Everything is fine when the file is downloaded with Firefox. When downloaded with IE7 the zip file is corrupt. Any ...
3
votes
1answer
448 views

Backup directory as zip files of 1gb under Ubuntu 9.04

I'm searching for a solution to take a big directory and make a multiarchive zip backup with each zipfile being 1gig. I've looked at zipsplit but appearently you can not actually split files, ie. one ...
3
votes
2answers
43 views

How do I persuade IIS to deliver content from within a Zip file?

Is it possible to "persuade" IIS to deliver content from a Zip file "Container" ? For example I have lots of PDF documents packed in Zip archives and I need to display the PDFs in a browser. So for ...
2
votes
6answers
410 views

Are there other options to unzip a file in Ubuntu besides “unzip”? [closed]

My sysadmin is unreachable right now, and I have a zipped file on the server that I would like to unzip...however, we don't currently have zip and unzip installed, and I don't have root access to ...
2
votes
4answers
17k views

.docx owa downloading as a zip?

have an issue that for .docx files in owa are downloading as a zip file... anyone help?
2
votes
1answer
164 views

How to remove a certain folder when tar zipping?

I want to remove a folder when I'm creating a tar.gz file as it's for a backup and it takes too much space and is not required I am using the following command; tar -cvzf ...
2
votes
2answers
969 views

Batch unzip .zip files using 7z [closed]

I have downloaded a large number of .zip files and need to extract them using 7z (p7zip) at the command line. 7z x filename0001.zip is successful, but 7z x *.zip returns a "No files to process" error. ...
2
votes
1answer
1k views

Can the encryption option with zip on Linux when used from the command line?

Can the encryption option on Info-ZIP be used from the command line? The zip man page says: -e --encrypt Encrypt the contents of the zip archive using a password which is entered on the terminal ...
2
votes
2answers
1k views

Faster zlib alternatives

I wonder, if there are any faster builds of zlib around with more advanced optimizations? If it's possible to optimize it using SSE instructions or Intel C++ compiller, or some trick which were ...
2
votes
1answer
1k views

Zipping folder with absolute path without keeping tree of folders

I am attempting to use the zip -r command to zip a folder which includes two files. I need to pass the absolute path of the folder with two files (/path/to/my/files/), which is causing all of the ...
2
votes
1answer
1k views

Force download of zip file stopping a few thousand bytes short

I'm trying to start a force download of a zip file containing a large amount of images. I'm using php to force the download and it's running on nginx. The weird thing is when i use wget to download ...
2
votes
4answers
50 views

Equivalent of grep -l for filenames in zipfile

Given a set of zip files, is there an easy way to list only those zipfiles that contain files whose names match a given pattern, cf. using grep -l to list only files whose contents contain lines ...
2
votes
1answer
11k views

Zip for Windows Server 2008 command line?

I know that this has been asked before, but I have not found an answer for Windows Server 2008. Most references I found are with the Windows Server 2003 Resource Kit, but not for 2008. I know that ...
2
votes
2answers
2k views

Trying to unzip a file with Powershell

I'm trying to unzip a bunch of archives including the new xlsx files into a TMP folder and then work on that folder and then remove it. And shit just doesnt want to go my way. $spath = ...
2
votes
5answers
2k views

Is there any value in checking MD5 of files after they have been unzipped?

A project I am working on currently requires that the user runs an MD5 hash checking tool on the entire project, after it has been unzipped. They do not currently request that the ZIP itself is ...
2
votes
2answers
2k views

Store file in zip archive with different name (linux command shell)

In a linux command line, you zip a file by: zip -mqj archive.zip file.txt Now, I need to store 'file.txt' as 'file2.txt' in 'archive.zip', without renaming the file before zipping. When unzipped, ...
2
votes
1answer
540 views

PowerShell Command 'write-zip' doesn't work

I am using a Powershell script to compress some files into a .zip file. My entire script looks like this: Write-Host "Creating Zip File... " -NoNewLine write-zip ("file1.txt", "file2.txt", ...
1
vote
2answers
331 views

How to zip the standard output of a process?

I have a process that is producing a big amount of log to the standard output in a short period of time. Is there a way to zip the standard output of my process to a file. I am searching for ...
1
vote
1answer
218 views

zip file extracts faster than copying

System Win 7 32 bit. I am using WinRAR to extract a .rar file, but I think it is the same for any zipped files. I have: 1) SomeSourceCodeFolder.rar -> extract -> SomeDestCodeFolder 2) ...
1
vote
2answers
562 views

Command-line ZIP client

Using the zip command, how do I add all files in the current directory to a zip file without including the folder? For instance, when I unzip, I want all the files to dump out, not get put into a new ...
1
vote
3answers
1k views

Corrupted zip file after using split and cat on Linux

I had to split this 2.6 GB zip-file in order to send it thru a slow uplink. I did this: split -b 879m BIGFILE.zip This created xaa, xab & xac which I uploaded to the remote server. After the ...
1
vote
2answers
988 views

How to split file on Windows 2003 using MS supported tool

Is it possible to split a large file into smaller files on Windows 2003 using a tool provided/supported/sanctioned by Microsoft? I see that there are a lot of freeware tools (various zip tools) for ...
1
vote
2answers
3k views

Updating a file in a zip archive from STDIN

I want to update/freshen a file in a zip archive with the contents of stdin. So far I haven't been able to find a way to tell the zip command that the contents of stdin correspond to a particular ...
1
vote
3answers
2k views

server core 2008 command

I want to extract a zip file on Server Core 2008. Can anyone tell me the command to do so?
1
vote
1answer
1k views

Verify if the files can be unzipped successfully from 7Zip archive

We want to 7zip many database files (mysql, Oracle, and SQL Server dumps), various standard files (excel, word, etc), but we are afraid that once we 7Zip them and delete the originals it can happen ...
1
vote
1answer
568 views

Create self extracting (.exe) zip from the command line

Trying to automate a manual procedure in place currently. This is on a Windows 2008 server. Is there a method to create a self extracting (.exe) zip file from a commandline/batch file?
1
vote
2answers
2k views

Bash script to convert archive to .zip format

I'm looking for a flexible bash script to do the following: Convert .rar, .tar, .tar.gz, .bz2, .7z archives to .zip format Keep all folder structures and filenames as source archive. Convert it ...
1
vote
3answers
965 views

Sync files and folders in windows with commands

I am a Linux user. I am looking for a command line tool for Widows(2008 R2) for files & folders synchronization. I am looking for a tool like rsync in Linux. I have to synchronize between two ...
1
vote
3answers
2k views

how to remotely zip files using putty

Is there a way to remotely ZIP up files using Putty the same way you can ZIP up files using Remote Desktop on another machine?
1
vote
1answer
992 views

SugarCRM CE: upgrade from 6.5.9 to 6.5.11 Fails with “ZIP Error(0): Status(0): Arhive(upload://SugarCE-6.5.11.zip)”

I have a fresh running installation of SugarCRM Version 6.5.9 (Build 8653) hosted at Bluehost.com (shared hosting) When I use the upgrade wizard, the system checks are all successful. Then I get the ...
1
vote
2answers
75 views

Batch file problems

I have created a batch file to copy and zip up an entire drive of data on my server. I have selected the D:\ drive to be copied and zipped. However, I have one problem. When I run the batch file, only ...
1
vote
1answer
86 views

Windows file system and its speed problem

We have a server which is overwhelmed by files used by a web app. Because the number of files in the server is too great the overall performance of the whole server has degraded (including other ...