Solved

7-zip error - Not supported archive

Posted on 2008-10-30
12
8,582 Views
Last Modified: 2012-06-22
I have a batch file to extract zip file using 7-zip.  The command is follows:
U:\D-Database\0-script\7z e *.zip
7z.exe and *.zip file exist in 0-script folder.  U:\ is my mapped drive.  If I run the same batch on C:\, it works fine.  If I right click on zip file on U:\, and manually extract the file, it works.  However, if I run the batch on mapped drive U:\, I get an error and can't extract file.  I put "Pause" clause to see the error message and it was "Not supported archieve."  Does anybody have any idea?
My computer is XP sp2 and mapped drive is located on Windows 2003 Server.
I appreciate your any suggestions in advance.  Thank you.  hb
0
Comment
Question by:kg6lfz
  • 4
  • 4
  • 4
12 Comments
 
LVL 65

Expert Comment

by:RobSampson
ID: 22847899
Hi, does it make any difference if you do this in your batch file:

U:
CD U:\D-Database\0-script
7z e *.zip


Or

U:\D-Database\0-script\7z e U:\D-Database\0-script\*.zip

Regards,

Rob.
0
 

Author Comment

by:kg6lfz
ID: 22849159
Thank you for your suggestions.  I will not be in the office until Monday, so I will verify it first in the morning.  I apologize for any inconveniences and appreciate your comments.  Hb
0
 
LVL 65

Expert Comment

by:RobSampson
ID: 22863520
No problem. When you're ready....
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 16

Expert Comment

by:t0t0
ID: 22869678

Hiya

Have you tried:

[echo password >] runas [/user:administrator] [command]
as in
echo psw >runas /user:administrator u:\D-Database\0-script\7z e u:\D-Database\0-script\*.zip
 
*not forgeting to replace 'psw' with the administrator's proper password of course!
*if you omit the 'echo psw >' then you'll be promted for the password
0
 

Author Comment

by:kg6lfz
ID: 22878671
Thank you to both RobSampson and t0t0.  I tried both suggestions, but it did not work.  The error message I get is:  (I added "pause" to see the error.)

U:\D-Database\0-script\7z e U:\D-Database\0-script\*.zip

7-Zip 4.42  Copyright (c) 1999-2006 Igor Pavlov  2006-05-14

Processing archive: U:\D-Database\0-script\*.zip

Error: U:\D-Database\0-script\*.zip is not supported archive

U:\D-Database\0-script\>pause
Press any key to continue . . .

I don't need to stick with 7zip.  Since XP comes with Compress Zip function, can I use this instead?  I appreciate your time and suggestions very much.  Thank you.
0
 
LVL 16

Expert Comment

by:t0t0
ID: 22879174
Try using  Windows' compression....
0
 

Author Comment

by:kg6lfz
ID: 22879500
That's what I was thinking, too.  But how can I make a batch file, so that I do not need to manually process (unzip) file?  Thank you very much.
0
 
LVL 65

Accepted Solution

by:
RobSampson earned 125 total points
ID: 22880135
Hi, you can try the UltimateZip Command Line tool.  I gave an example of using it here:
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_23625629.html

Regards,

Rob.
0
 
LVL 16

Assisted Solution

by:t0t0
t0t0 earned 125 total points
ID: 22880306
If you intend using a zip compression program then I urge you to check out FreeByte's Zip at:

http://www.freebyte.com/fbzip/

It has a Windows' GUI as well as command line functionality and is fully compatible with XP's NTFS.

Picozip is another that springs to my mind although I haven't used it myself personally.

Once you have decided which zip compression program you want to stick with then you'll need to determine what the command line options are before embarking on writing any batch file.



0
 

Author Comment

by:kg6lfz
ID: 22880788
I uninstalled 7zip program and installed it again.  Now it works fine.  I thank both of you to offer me ideas to solve the problems.  Thank you very much.
0
 
LVL 16

Expert Comment

by:t0t0
ID: 22881542
kg6lfz

I am pleased you were able to find the solution to your problem. Sometimes the solution is surprisingly unexpected.
0
 
LVL 65

Expert Comment

by:RobSampson
ID: 22881619
No problem. Thanks for the grade. Perhaps 7-zip just lost its file type associations.....

Good work.

Regards,

Rob.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question