Solved

7-zip error - Not supported archive

Posted on 2008-10-30
12
8,551 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
 
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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

895 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now