dbTalk Databases Forums  

How to call an .exe from DTS ActiveX task?

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


Discuss How to call an .exe from DTS ActiveX task? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
les
 
Posts: n/a

Default How to call an .exe from DTS ActiveX task? - 11-02-2005 , 08:39 AM






I'm trying to automate uploading a file to a secure FTP site using a
program called WinSCP.

I can run it from the command line using something like:
winscp3 /console /script=example.txt

But I want to call this from the activex task. At the moment DTS tells
me there is a syntax error on this line. I kind of expected this as I
must have to declare WinSCP somehow before DTS will know what it is.

Could someone tell me how to use make this work in the activex script
task? or if there's a better way of connecting to SFTP from DTS?

Thanks
Leslie


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: How to call an .exe from DTS ActiveX task? - 11-02-2005 , 02:26 PM






The ExecuteProcess task is more suited to this kind of thing can you use
that?


Allan

"les" <les> wrote


Quote:
I'm trying to automate uploading a file to a secure FTP site using a
program called WinSCP.

I can run it from the command line using something like:
winscp3 /console /script=example.txt

But I want to call this from the activex task. At the moment DTS tells
me there is a syntax error on this line. I kind of expected this as I
must have to declare WinSCP somehow before DTS will know what it is.

Could someone tell me how to use make this work in the activex script
task? or if there's a better way of connecting to SFTP from DTS?

Thanks
Leslie


Reply With Quote
  #3  
Old   
les
 
Posts: n/a

Default Re: How to call an .exe from DTS ActiveX task? - 11-02-2005 , 04:39 PM



Yes I think I can. I just discovered it after posting here.
Thanks Allan

Leslie


On Wed, 2 Nov 2005 20:26:29 +0000, "Allan Mitchell"
<allan (AT) no-spam (DOT) sqldts.com> wrote:

Quote:
The ExecuteProcess task is more suited to this kind of thing can you use
that?


Allan

"les" <les> wrote in message
news:b9jhm1tj2kjh6rjungfrgrhvehne8siqvs (AT) 4ax (DOT) com:

I'm trying to automate uploading a file to a secure FTP site using a
program called WinSCP.

I can run it from the command line using something like:
winscp3 /console /script=example.txt

But I want to call this from the activex task. At the moment DTS tells
me there is a syntax error on this line. I kind of expected this as I
must have to declare WinSCP somehow before DTS will know what it is.

Could someone tell me how to use make this work in the activex script
task? or if there's a better way of connecting to SFTP from DTS?

Thanks
Leslie


Reply With Quote
  #4  
Old   
urchin
 
Posts: n/a

Default Re: How to call an .exe from DTS ActiveX task? - 11-03-2005 , 06:57 AM



Make sure you supply unc's or that the exe and any command line
parameters are in the path. One thing that gotten me several times
before is that the default path for an executing dts package is in the
....\binn folder


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.