| | |
batch file help - extraction
![]() |
•
•
Join Date: May 2004
Posts: 217
Reputation:
Solved Threads: 0
Hello everyone. I would like to make a batch file that extracts the contents of MANY .zip files (<name>001-146) to a certain folder, without having to manually extract them. My .bat skills are not good enough to do it and it would be a usuful tool that i currently need. Can someone please post the batch code that will do this.
many thanks in advance.
many thanks in advance.
•
•
Join Date: Mar 2004
Posts: 1,620
Reputation:
Solved Threads: 51
Hello,
The older DOS PKUNZIP might work for you. I wonder if WinZip has something like that available too.
I wonder if you could instead of getting a bunch of .ZIP files, if your source could send you ONE zip file with everything inside it.
You cannot just go PKUNZIP *.ZIP as your files would be placed in the working folder and be mingling with your .ZIP files too. That would be bad.
Good luck on this one.
The older DOS PKUNZIP might work for you. I wonder if WinZip has something like that available too.
I wonder if you could instead of getting a bunch of .ZIP files, if your source could send you ONE zip file with everything inside it.
You cannot just go PKUNZIP *.ZIP as your files would be placed in the working folder and be mingling with your .ZIP files too. That would be bad.
Good luck on this one.
•
•
Join Date: Jul 2004
Posts: 494
Reputation:
Solved Threads: 21
Can you extract them from the command line how you want? If not, the rest of the post won't be very useful.
To get a file listing of all the zip files in a directory, use:
dir *.zip /b > names.txt
your batch file may go something like this (stick with me, I'm used to Linux)
Oh, and one more note: I use binary numbers for temporary directory names just so I can practice binary.
mkdir 00000000
cd 00000000
unzip ../filename.zip
cd ..
mkdir 00000001
cd 00000001
unzip ../filename2.zip
cd ..
and so on...
To get a file listing of all the zip files in a directory, use:
dir *.zip /b > names.txt
your batch file may go something like this (stick with me, I'm used to Linux)
Oh, and one more note: I use binary numbers for temporary directory names just so I can practice binary.
mkdir 00000000
cd 00000000
unzip ../filename.zip
cd ..
mkdir 00000001
cd 00000001
unzip ../filename2.zip
cd ..
and so on...
Last edited by Puckdropper; Jul 22nd, 2004 at 4:03 am. Reason: Clarity
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
•
•
Join Date: Mar 2004
Posts: 3,826
Reputation:
Solved Threads: 144
Hey marceta. Have you considered that some of those zip archives might contain files with the same filename? Extracting all the archives into the one directory as a 'batch' operation might not be the wisest thing to do. You might just end up with some files lost from the exercise
•
•
Join Date: Jul 2004
Posts: 494
Reputation:
Solved Threads: 21
Go and celebrate by having a nice cold can of root beer. I find Barqs is best Ice Cold. ;-)
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
![]() |
Similar Threads
- Defragmenting XP using Batch File (Windows NT / 2000 / XP)
- Adding URL's To Favourites Using A Batch File (Windows NT / 2000 / XP)
- zip file extraction (Java)
- Batch file that takes arguments (C)
- Batch file for renaming extensions (Windows NT / 2000 / XP)
Other Threads in the Windows NT / 2000 / XP Forum
- Previous Thread: XP reinstall from English to Italian version
- Next Thread: cannot find shell.dll
Views: 11126 | Replies: 8
| Thread Tools | Search this Thread |
Tag cloud for Windows NT / 2000 / XP
.net 3.5 3daccelertion 2007 2010 activedirectory alaris android application audio auto automatically black blue book bulletin canonical cellphones chinese chkdsk collaboration computer crash deployments desktop domain dotnetnuke drive dual error errors explorer features folder fonts format hardware internet interoperability killprocess laptop laptops lcd linux load mac memory microsoft mobile monitor motionle1600 netbooks novell open opensource operatingsystems oracle osinstallationproblem partition product proxy raid rds remotedesktopconnection retail retrieve rootkit screen security server. slowperformance sp1 sp3 spyware studios technology ubuntu uninstall update upgrade usb verizon videogames virtual virus vista visual volume wab webos weecam win win32/heur windows windows7 windowsxp windowsxpnotstartingup. worm xp xpde







does anyone know how to do it?