dbTalk Databases Forums  

ActiveX scripts and files

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss ActiveX scripts and files in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ngorbunov via SQLMonster.com
 
Posts: n/a

Default ActiveX scripts and files - 08-23-2006 , 09:32 AM






Is there any way I can zip up files within an ActiveX script?

Thanks,
Ninel

--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...r-dts/200608/1


Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: ActiveX scripts and files - 08-23-2006 , 12:45 PM






Another option is to use an Execute Process task. You should
be using the command line version of Winzip and execute the
command line exe for WinZip (wzunzip) with the necessary
parameters.

-Sue

On Wed, 23 Aug 2006 14:32:06 GMT, "ngorbunov via
SQLMonster.com" <u9125@uwe> wrote:

Quote:
Is there any way I can zip up files within an ActiveX script?

Thanks,
Ninel


Reply With Quote
  #3  
Old   
ngorbunov via SQLMonster.com
 
Posts: n/a

Default Re: ActiveX scripts and files - 08-25-2006 , 09:15 AM



I have the following code within the ActiveX: script:
Code:
sRptFileName = "\\ititpafs01\pds\INETPUB\FTPROOT\accumen\Political\" & iRowCount1.Value & ".xls" Dim vCsvFile Dim vZipFile Dim mcrZip vCsvFile = "\\ititpafs01\pds\INETPUB\FTPROOT\accumen\Political\" & iRowCount1.Value & ".xls" vZipFile = "\\ititpafs01\pds\INETPUB\FTPROOT\accumen\Political\" & iRowCount1.Value & ".zip" mcrZip = "RUN l:\voicenet\isiti\winzip\wzzip.exe " & vZipFile & " " & vCsvFile SHELL(mcrZip)

This is not working.

Can someone please help me out?
Thanks,
Ninel


Sue Hoegemeier wrote:
Quote:
Another option is to use an Execute Process task. You should
be using the command line version of Winzip and execute the
command line exe for WinZip (wzunzip) with the necessary
parameters.

-Sue


Is there any way I can zip up files within an ActiveX script?

Thanks,
Ninel
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...r-dts/200608/1



Reply With Quote
  #4  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: ActiveX scripts and files - 08-29-2006 , 09:23 AM



Just looking at how you are trying to execute winzip, that
won't work.
If I have a file D:\Test\Test.zip
that I want to unzip to the folder D:\SomeDir
I would need to use something like the following in an
ActiveX script:

Dim oShell, strCommand
Set oShell = CreateObject("WScript.Shell")
strCommand = "Wzunzip.exe D:\Test\Test.zip D:\SomeDir"
oShell.Run strCommand

-Sue

On Fri, 25 Aug 2006 14:15:09 GMT, "ngorbunov via
SQLMonster.com" <u9125@uwe> wrote:

Quote:
I have the following code within the ActiveX: script:
Code:
sRptFileName = "\\ititpafs01\pds\INETPUB\FTPROOT\accumen\Political\" & iRowCount1.Value & ".xls" Dim vCsvFile Dim vZipFile Dim mcrZip vCsvFile = "\\ititpafs01\pds\INETPUB\FTPROOT\accumen\Political\" & iRowCount1.Value & ".xls" vZipFile = "\\ititpafs01\pds\INETPUB\FTPROOT\accumen\Political\" & iRowCount1.Value & ".zip" mcrZip = "RUN l:\voicenet\isiti\winzip\wzzip.exe " & vZipFile & " " & vCsvFile SHELL(mcrZip)

This is not working.

Can someone please help me out?
Thanks,
Ninel


Sue Hoegemeier wrote:
Another option is to use an Execute Process task. You should
be using the command line version of Winzip and execute the
command line exe for WinZip (wzunzip) with the necessary
parameters.

-Sue


Is there any way I can zip up files within an ActiveX script?

Thanks,
Ninel


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.