Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automate UnZip/Uncompress

Status
Not open for further replies.

fuzzyocelot

Programmer
Jul 22, 2003
333
US
Hi everyone!

I need to automate a process on a Windows 2003 Server (SP2) that involves downloading files from an FTP server (via ftp command) and unzipping them on a regular basis. The problem I'm having is trying to figure out how to unzip/uncompress a file automatically. I've been told we will no longer be using WinZip and I don't think anyone will let me put another program on the server to do so unless deemed absolutely necessary. I know Windows has a compress/uncompress feature built-in. Is there a command line for it? I can't find it or figure it out. Does the built-in FTP command have a feature that will unzip a file?

TIA! :)
 
Thanks for the command. :) I tried it, but it didn't work. I should have mentioned that the file name is: "file.unl.Z". That's probably why it didn't work. I typed in:

Code:
compact /U file.unl.Z

The messages said:

Code:
Uncompress files in C:\Folder\

0 files within 1 directories were uncompressed.

So then I tried :
Code:
compact /U /F file.unl.Z

The messages said:

Code:
Uncompress files in C:\Folder\

file.unl.Z [OK]

1 files within 1 directories were uncompressed.

But there's no file in the directory. So I don't think it's going to work with this file. Is there another way to unzip/uncompress this type of file in Windows short of downloading/buying a 3rd party program?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top