Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Winzip Prob. Help! alot of files


  • Please log in to reply

#1
mikevxpx

mikevxpx

    New Member

  • Member
  • Pip
  • 3 posts
Ok. Is there a way to zip all the files in one folder at the same time.... into a zip file corresponding with each file name? (ex.) C:/folder1/ has two different text files: writing1.txt and writing2.txt is there a way to, like, click and drag, or cut and paste and zip them at the same time and make the C:/folder1 contain (writing1.txt, writing2.txt, writing1.zip, and writing2.zip)
I have a lot of files in one folder but I want them all zipped to there own .zip file. But if I do it one at a time my brain will explode......Help!
Oh, and Id like to use WinZip. Thanks
  • 0

Advertisements


#2
mikevxpx

mikevxpx

    New Member

  • Topic Starter
  • Member
  • Pip
  • 3 posts
Any Help? Please.
  • 0

#3
gust0208

gust0208

    Member

  • Member
  • PipPipPip
  • 311 posts
Hello,

I whipped up a small bat file for you to use along with the great open-source compression program 7-zip. First, go download and install 7-Zip to the default directory, you can download it from http://www.7-zip.org/.

Next, download the bat file (http://www.sector512...s/batch_zip.bat) and copy it INTO the directory where you want to zip all the files individually. Then, just double-click the "batch_zip.bat" and it will automatically zip each file in the directory into it's own *.zip file. (It will also do this to itself, you can just delete the batch_zip.bat.zip that is formed).

Hope that helps and it should solve your problem!

Cheers,
Tom

p.s. Here is the contents of batch_zip.bat
@echo off

set directory=%cd%
set zip_command="c:\Program Files\7-Zip\7z.exe" a -tzip

FOR %%c in (%directory%\*.*) DO %zip_command% %%c.zip %%c

:END

Ok. Is there a way to zip all the files in one folder at the same time.... into a zip file corresponding with each file name? (ex.) C:/folder1/ has two different text files: writing1.txt and writing2.txt is there a way to, like, click and drag, or cut and paste and zip them at the same time and make the C:/folder1 contain (writing1.txt, writing2.txt, writing1.zip, and writing2.zip)
I have a lot of files in one folder but I want them all zipped to there own .zip file. But if I do it one at a time my brain will explode......Help!
Oh, and Id like to use WinZip. Thanks


  • 0

#4
mikevxpx

mikevxpx

    New Member

  • Topic Starter
  • Member
  • Pip
  • 3 posts
Thanks man, worked like a charm!

thakns again.
  • 0

#5
gust0208

gust0208

    Member

  • Member
  • PipPipPip
  • 311 posts
No worries and glad it helped out, I have always had a fondness for batch file programming.

Cheers,
Tom

Thanks man, worked like a charm!

thakns again.


  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP