sftp for vbscript

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
kevingauvin
Posts: 16
Joined: Thu Jan 29, 2009 6:29 pm

sftp for vbscript

Post by kevingauvin » Thu Jan 29, 2009 6:50 pm

Hi,

I am currently using the FTP Library to ftp files using a vbscript. I am basically using the example from the smartftp website on how to upload a file from VBscript. I was just wondering if it's possible to use a vbscript to upload files with sftp.

Thanks,
Kevin

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: sftp for vbscript

Post by mb » Thu Jan 29, 2009 9:19 pm

Dear Kevin ..

You can find an example in the FTPLib installation package. Just go to the Samples\SFTP\Script folder.

Regards,
Mat

kevingauvin
Posts: 16
Joined: Thu Jan 29, 2009 6:29 pm

Re: sftp for vbscript

Post by kevingauvin » Tue Feb 03, 2009 2:17 pm

thanks Mat,

I found the script. when I execute I get an error saying "ActiveX component can't create object sfFTPLib.SFTPconnection"

it's failing on

Set objFTP = CreateObject("sfFTPLib.SFTPConnection")

Any ideas?




Dear Kevin ..

You can find an example in the FTPLib installation package. Just go to the Samples\SFTP\Script folder.

Regards,
Mat

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: sftp for vbscript

Post by mb » Tue Feb 03, 2009 3:17 pm

Register the sfFTPLib.dll
regsvr32.exe sfFTPLib.dll

Regards,
Mat

kevingauvin
Posts: 16
Joined: Thu Jan 29, 2009 6:29 pm

Re: sftp for vbscript

Post by kevingauvin » Tue Feb 03, 2009 5:23 pm

Thanks Mat,

I was able to successfully register the dll. Unfortunately I got the same error message about not being able to create the object.

I really thought that was the fix for the problem. Maybe I have an older dll or something.

Any ideas?





Register the sfFTPLib.dll
regsvr32.exe sfFTPLib.dll

Regards,
Mat

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: sftp for vbscript

Post by mb » Tue Feb 03, 2009 9:21 pm

Are the Samples\FTP\Scripts working?

kevingauvin
Posts: 16
Joined: Thu Jan 29, 2009 6:29 pm

Re: sftp for vbscript

Post by kevingauvin » Wed Feb 04, 2009 1:13 pm

Hi,

Yes, the Samples\FTP\Scripts are working for me. I am able to connect to a remote server and upload files. I am able to create the following object " Set obj = CreateObject("sfFTPLib.FTPConnectionSTA") "



Are the Samples\FTP\Scripts working?

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: sftp for vbscript

Post by mb » Wed Feb 04, 2009 4:40 pm

I'm not sure why the SFTP examples are not working for you. Did you try it on a different system?

Regards,
Mat

kevingauvin
Posts: 16
Joined: Thu Jan 29, 2009 6:29 pm

Re: sftp for vbscript

Post by kevingauvin » Wed Feb 04, 2009 4:57 pm

I'll try it on a different machine and see if I still get the same problem.

Post Reply