C# unzipping kind of

T

thewhoracle

I have a C# application that essentially builds batch and text files
and runs them from the command line, but i need to unzip something from
the command line. What i need is either an unzipping program that does
not use a dialog, meaning i can call it from the command line with
paramters and have it execute it's functionality all without a window
popping up. Winzip won't do this for me. anyone know any programs
that operate completely in the console that can UNZIP? (don't need zip,
just unzip)
 
J

Jon Skeet [C# MVP]

thewhoracle said:
I have a C# application that essentially builds batch and text files
and runs them from the command line, but i need to unzip something from
the command line. What i need is either an unzipping program that does
not use a dialog, meaning i can call it from the command line with
paramters and have it execute it's functionality all without a window
popping up. Winzip won't do this for me. anyone know any programs
that operate completely in the console that can UNZIP? (don't need zip,
just unzip)

I suggest you use the SharpZipLib library, then you don't need to spawn
a separate process at all.

See http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx
 
T

thewhoracle

so i already looked at sharpzip and i can't get it built, NAnt won't
build onto my machine. I may have to uninstall/reinstall the .net
framework. Hence why doing it from the command line works fine. I
know winzip has a commandline version but that means i ahve to license
the new version. i'll undoubtedly end up using sharpzip and just
fixing my framework installation. thanks anyways!
 
J

Jon Skeet [C# MVP]

thewhoracle said:
so i already looked at sharpzip and i can't get it built, NAnt won't
build onto my machine. I may have to uninstall/reinstall the .net
framework. Hence why doing it from the command line works fine. I
know winzip has a commandline version but that means i ahve to license
the new version. i'll undoubtedly end up using sharpzip and just
fixing my framework installation. thanks anyways!

You don't need to build SharpZipLib - just use the pre-built DLL.
 
S

SharpCoderMP

you can use unzip from this *GREAT* package
there is also zip if you need and whole bunch of great console utils.
after some time you cant live without this.
for now i don't even use "dir" on my winXP... now i just type "ls"
 
J

Jon Skeet [C# MVP]

SharpCoderMP said:
you can use unzip from this *GREAT* package
there is also zip if you need and whole bunch of great console utils.
after some time you cant live without this.
for now i don't even use "dir" on my winXP... now i just type "ls"

You haven't actually said which package you mean - cygwin, perhaps?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top