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!

Unzip a file in dts with an activex

Status
Not open for further replies.

AnaFlor

Programmer
Mar 17, 2004
65
PT
Hello,

I was trying to unzip a file in a dts with the following code:

Function Main()
strFTPDir = "c:\zip_source"
strFileNameBase = "TEST"
strPublishDir = "c:\zip_destination"

Set WshShell = CreateObject("WScript.Shell")
strUnzip = "c:\pkunzip.exe -e " & strFTPDir & "\" & strFileNameBase & ".zip " & strPublishDir
WshShell.Run strUnZip,1,true
Set WshShell = nothing

Main = DTSTaskExecResult_Success
End Function

The problem is in the line:
WshShell.Run strUnZip,1,true

Can you help me?

Thanks
 

Have you considered creating a batch file to do the unzip? Or is this unacceptable for your environment?
 
I tryed to create a batch file to do the unzip.

The problem is when I try to unzip files in my machine it works.

But when I try to unzip files in the server it gives me an error.

Can you help me?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top