0
votes
0answers
24 views

Using a .bat file to pull a string from a text file within a zip folder

So, please bear with me. This is only the second batch file I've ever written and my first post anywhere on StackExchange. I'm writing a batch file that tells a remote server to run HP Array ...
0
votes
1answer
84 views

Command line - Some questions

I've created a batch file for zipping selected items in a folder. (The file is placed in 'Send to'). If I use the following code: for %%* in (.) do set CurrentFolder=%%~n* "C:\Program ...
0
votes
1answer
92 views

Using command-line to pack files individually into .zip format while keeping directory structure

I'm trying to create a cmd script that recursively traverses a directory and zip each file individually. This I have done here: for /R %%b IN (*.*) do ( "C:\Program Files\WinRAR\WinRAR.exe" a ...
1
vote
0answers
42 views

How to hide error dialog box in 7zip?

I am using "C:\Program Files\7-Zip\7zG.exe" -y x -pmypassword "D:\Myfile.rar" -o"D:\Extracted Files\" for extracting a file encrypted with password. Now if 'mypassword' is not the correct password ...
2
votes
1answer
227 views

Remove sub directories / sub folder from zip + rar files

I have a bunch of .zip and .rar files. Many of these files contain subfolders in the archive. I want to remove all the folders from the zip files but keep the other content. e.g. original.zip - ...
0
votes
0answers
19 views

Command line to extract WinRar .rar to auto-named folder [duplicate]

I am working on streamlining a lot of the processes that I have to do associated with my work (web developer). I am downloading a lot of .zip and .rar files at the moment, and I'd like to create a ...
0
votes
1answer
55 views

How to zip a file to a certain directory

I've googled this issue and I can't find anything. I'm trying to zip the contents of my htdocs, and so far it's great, but the zipped file always saves in /home, which over times gets annoying. $ ...
0
votes
1answer
39 views

syntax to archiving individual folders

can somebody tweak/edit this batch command so that it will go to the root directory of each folder before it archive it. for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.zip" "%%X\" ...
3
votes
3answers
292 views

Display deflation percentage of tar command (like zip command)

This question may sound weird but I would like to know if there is a possibility to display the deflation percentage of the files processed in the tar command. I use this command tar -cjvf ...
1
vote
0answers
127 views

How can I create a self-extracting executable from the windows command line that accepts the default install directory as a parameter?

I have tried several different methods including winzip command line and 7zip, but I cannot find a method that will let me create a self-extracting executable that will extract to a specific directory ...
1
vote
3answers
3k views

Batch file to ZIP only files in directory or sub directory

I wanted to know if possible how to create a command line to do the following - if a directory exist ZIP only the contents into a ZIP file. If a directory has sub-directories ZIP only the contents ...
0
votes
1answer
358 views

Is it possible to recursively list zip file contents with 7 zip without extracting

Similar to this question I have a very large zip file which contains other zip files, folders, and files. I want to use 7-zip to extract a list of file names from it, recursing into subfolders and zip ...
0
votes
5answers
669 views

Automatically extracting text files via commandline and combining them into a single text file

In-Depth Explanation of Problem: I'm trying to automate a process on my computer and having some difficulty. Each day, I'm emailed a zip file that contains a txt file. I have a script in place that ...
2
votes
3answers
249 views

osx: selectively zip large number of files: -@ option OK?

I need to make a zip file archiving ~100k files from a directory containing ~500k files. I get "argument list too long" errors when I try the obvious commands: zip archive.zip *pattern*.txt ...
1
vote
0answers
94 views

repeat command until process start or timeout unix

Is there anyway to check the number of file in a directory, if the number of files is correct, say 5 files, zip the files with zip -r total.zip. If the number of files is wrong, wait 3 seconds, and ...
1
vote
2answers
69 views

unix command zip everything except file ending with _fpartxx

I was wondering, if I have a folder structure like this: /var/www/testing/file1.iso_fpart0 /var/www/testing/file1.iso_fpart1 /var/www/testing/file1.iso_fpart2 /var/www/testing/file1.iso ...
2
votes
1answer
2k views

How do I add files from a directory to a .zip-File using the 7zip command line?

I am using the 7zip command line to zip-up files. How can I add all files and subdirectorys from a folder to a zip file (.jar archive file)? I used: 7zip.exe a -t7z file.zip C:\folder Thank you.
3
votes
2answers
1k views

powershell cmd script of out-zip.ps1

i have found this powershell script online and i would like to run this from a batchfile. Can anyone give me the correct syntax for this script. And if possible make it possible to input multiple ...
0
votes
1answer
795 views

Auto Zip folders to RAR files

Essentially I host all my music on an FTP so friends and family can access it with ease, and I can access it from abroad etc. But the only issue is that each track needs to be downloaded manually. I ...
1
vote
0answers
901 views

'No such interface supported' when attempting to compress file through 7zip commandline

When I run the 7zip commandline: > echo foo | 7za a arc.7z -sifoo.txt Everything works as expected, but if I try to do: echo foo | 7za a arc.zip -sifoo.txt I get the following: ...
0
votes
1answer
516 views

How to recursively `zip` all files of a certain type in a directory?

I want to use the zip command to create a .ZIP of a folder but only include .txt files. Subdirectory structure should be preserved!
6
votes
1answer
3k views

How to overwrite existing zip file instead of updating it in Info-Zip?

To obtain a fresh zip file just like as tar does, do I have to perform rm foo.zip before executing zip? $ mkdir foo; touch foo/bar $ zip -r foo.zip foo adding: foo/ (stored 0%) adding: foo/bar ...
0
votes
2answers
2k views

How to zip files in XP's command line without additional tools/downloads

After prowling google, and checking an old thread in ServerFault, I thought I would try here. Without any additional downloads, on a fresh install of XP SP3, how can I run a script to extract AND zip ...
1
vote
3answers
1k views

How do I insert a folder into a ZIP file?

I'm a newbie on Linux and had to do something like this with the zip command: My folder structure inside a zip file abc.zip is: -- currentdir -- onestepdeep -- abc.zip -- folder1 ...
2
votes
2answers
3k views

Using WinRAR to compress a folder stucture

I am trying to zip up the following directory contents: C:\Test\*.* C:\Test\bin\*.* I want to be able to zip up the Test directory and the bin subdirectory, however, I need the Test directory’s ...
0
votes
0answers
328 views

Creating a zip archive from Windows command line [duplicate]

Possible Duplicate: Create .zip folder from the command line - (Windows) Is it possible to create a zip archive from the Windows command line without any 3rd party tools (7-Zip, WinZip, ...
7
votes
1answer
11k views

How to list the contents of a zip along w/ file sizes and compression ratio via cmd line

How do I list the contents of a zip along w/ file sizes and compression ratio (or packed size) on osx w/ command line tools?
1
vote
1answer
842 views

rar command line for creating .zip files

Is there a way to use the rar command line to create .zip files?
2
votes
2answers
1k views

Command line alternative to rar.exe with complex switches

I am searching for a command line alternative to rar.exe from winrar which supports the multitude of options that rar.exe does, preferably one that is open source. Specifically, I am searching for a ...
1
vote
4answers
9k views

What is 7-Zip’s command-line argument to create a self extracting archive?

I looked everywhere and couldn't find a straight answer from anyone. If I want to package the contents of C:\Temp into a file called Temp.exe (in 7z format) that is self-extracting, how do I do it ...
1
vote
0answers
197 views

Compress files on Windows Server 2003

Duplicate Questions 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 retrieved. This is ...
11
votes
3answers
28k views

Does Windows 7 have unzip at the command line installed by default?

There is a zip/unzip option in the context menu so is it accessible from the command line?
2
votes
2answers
619 views

Unzip only updated files

Is there a way to unzip a zip file into a directory, but only do so for updates files (I mean the compressed files inside the zip)? I have a huge directory of files there, and only about 20% are ...
2
votes
2answers
198 views

Looking for archive tool with very simple command line usage

OS: Windows XP Requirements: Support compress/uncompress zip format Like gzip can use the original file name as archive file name, so no need to specify archive file name. gzip target_folder, so ...
57
votes
8answers
146k views

Can you zip a file from the command prompt using ONLY Windows' built-in capability to zip files?

I have a batch file that outputs a text file. I thought it would be nice if I could zip it up too. This will be used in an uncontrolled environment, so I can't make assumptions about the presence of ...
17
votes
1answer
30k views

Linux unzip command: Option to force overwrite?

I am writing a shell script that unzips a ZIP file into an existing hierarchy of files, potentially overwriting some of the files. The problem is that the unzip command asks for confirmation: replace ...
2
votes
3answers
2k views

Windows command line ZIP extraction with checksum or similar?

What I need to do, at the command line, is: Extract the contents of a a ZIP archive. Change an arbitrary number of the extracted files. Repeat step 1, but because it is a huge archive, only extract ...
0
votes
3answers
176 views

Extracting *.csv from a hundred zips and appending results

What would be an efficient way to extract only all of the *.csv files (not other files inside) from inside a hundred zip files in a single directory? Then I need to make one large file with each CVS ...
8
votes
7answers
9k views

7zip doesn't ask me for password for a zip I encrypted while double-clicking it

I just tried to encrypt a folder with 7zip by command line choosing a password but when double-clicking on the zip file, it shows me the files list without asking any password. Any other alternative ...
1
vote
5answers
7k views

Dos command to ZIP a file [duplicate]

Possible Duplicate: Windows 2003 zip from command line Can somebody please, let me know that how we can zip a file in a Command line. Please, let me know.
4
votes
6answers
5k views

Are there any free command line based zip utility?

I need to schedule a command line to zip contents of a couple of folders. Are there any free command line based utility that can handle multi volumes? (7Zip is disqualified, the -v parameter is not ...
1
vote
3answers
9k views

Windows 2003 zip from command line [duplicate]

Possible Duplicate: Can you zip a file from the command prompt using ONLY Windows' built-in capability to zip files? Is there a way to zip a file (or group of files) from the command ...