blastmasterJUS1
asked on
Winzip/Wzunzip batch file
Hello experts.
The following bactch file unziups folders in the "decrypted" directory, leaving behind the original zip file. All the zip files are actually folders that have ben zipped.
I need the batch to unzip these folders to c:\unzipped, without leaving the orignal behind in c:\decrypted.
Please help, thanks!
@echo off
set BaseDir=c:\decrypted
for /r "%BaseDir%" %%A in (*.zip) do (
md "%%~dpnA"
"C:\Program Files\WinZip\WZunZIP.EXE" -o "%%A" "%%~dpnA"
)
The following bactch file unziups folders in the "decrypted" directory, leaving behind the original zip file. All the zip files are actually folders that have ben zipped.
I need the batch to unzip these folders to c:\unzipped, without leaving the orignal behind in c:\decrypted.
Please help, thanks!
@echo off
set BaseDir=c:\decrypted
for /r "%BaseDir%" %%A in (*.zip) do (
md "%%~dpnA"
"C:\Program Files\WinZip\WZunZIP.EXE" -o "%%A" "%%~dpnA"
)
ASKER
thanks Bill. This did unzip the files to c:\unzipped and did not leave copies in the originating folder however, what showed up in c:unzipped was a single folder called "C_", within that folder was another folder called "decrypted" and then underneath that were my original folders. I just need the original folders to end up in c:\unzipped.
For example, I have these 2 files in C:\decrypted, which are really folders containing other files.
20.zip
21.zip
22.zip
I need these folders\directories to be unzipped seperately to c:\unzipped. i.e.:
20
21
22
Thanks again!
For example, I have these 2 files in C:\decrypted, which are really folders containing other files.
20.zip
21.zip
22.zip
I need these folders\directories to be unzipped seperately to c:\unzipped. i.e.:
20
21
22
Thanks again!
Can you either post one of the ZIP files here, or at least post the output of a wzunzip -v command against one of the files please.
~bp
~bp
ASKER
Here you are. Thanks Bill.
21.zip
21.zip
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
~bp