Re: Unzip file using DTS
- From: mvp <mvp@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 10 May 2005 07:06:12 -0700
Hello Jim,
I have installed PKUNZIP.exe and copy and paste your code in activex task of
DTS with change of my directory name. And after executing DTS it says
successful execution of DTS but it is not unzipping the file, pls let me
know, is it the right code. also that dos window is quickly closing so i am
not able to read, how can i keep it open for little longer.
thx
'***********************************************************
' Visual Basic ActiveX Script
'***********************************************************
Function Main()
strCommand = "c:\temp\PKUNZIP test.zip"
Set oShell = CreateObject("WScript.Shell")
oShell.Run strCommand,,true
Main = DTSTaskExecResult_Success
End Function
"Jim Vierra" wrote:
> Code on demand. - just happened to use this the other day.
>
> strCommand = "c:\temp\pkunzip test.zip"
> Set oShell = CreateObject("WScript.Shell")
> oShell.Run strCommand
> --
> Jim Vierra
>
> "mvp" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:74880DBA-F472-4EF8-BD29-6D104A66BB7C@xxxxxxxxxxxxxxxx
> > Hi Allan,
> > Can you pls provide me small code example because i am very new in VB
> > Script
> > coding. I have already installed cmdline version of winzip.. i do have my
> > zip
> > file in C:\Temp\Test.zip, so pls provide me small example of activex
> > script,
> > so that i can create activex task in DTS and test.
> >
> > thx in advance
> >
> >
> > "Allan Mitchell" wrote:
> >
> >> I would call the cmdline version of Winzip or PKZip in an ExecuteProcess
> >> task.
> >>
> >>
> >>
> >> --
> >>
> >> Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
> >> www.SQLDTS.com - The site for all your DTS needs.
> >> www.SQLIS.com - SQL Server 2005 Integration Services.
> >> www.Konesans.com
> >>
> >>
> >> "mvp" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> >> news:EC1C6BF4-0528-45AD-ADED-33584F6CA437@xxxxxxxxxxxxxxxx
> >> > Hello everybody,
> >> > I have one XML file whcih is a zip file, which i do want to unzip using
> >> > DTS
> >> > and then want to load XML into SQL SERVER table, so can u pls let me
> >> > know,
> >> > how can i unzip file using DTS.
> >> >
> >> > thx
> >>
> >>
> >>
>
>
>
.
- Follow-Ups:
- Re: Unzip file using DTS
- From: Jim Vierra
- Re: Unzip file using DTS
- References:
- Unzip file using DTS
- From: mvp
- Re: Unzip file using DTS
- From: Allan Mitchell
- Re: Unzip file using DTS
- From: mvp
- Re: Unzip file using DTS
- From: Jim Vierra
- Unzip file using DTS
- Prev by Date: ActiveX Cannot Create Object
- Next by Date: Need Example exec proc from VBScript ActiveX DTS.
- Previous by thread: Re: Unzip file using DTS
- Next by thread: Re: Unzip file using DTS
- Index(es):
Relevant Pages
|