Jump to content


Photo

sftp for vbscript


  • Please log in to reply
8 replies to this topic

#1 kevingauvin

kevingauvin
  • Members
  • 16 posts

Posted 29 January 2009 - 06: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

#2 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 29 January 2009 - 09:19 PM

Dear Kevin ..

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

Regards,
Mat

#3 kevingauvin

kevingauvin
  • Members
  • 16 posts

Posted 03 February 2009 - 02: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



#4 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 03 February 2009 - 03:17 PM

Register the sfFTPLib.dll
regsvr32.exe sfFTPLib.dll

Regards,
Mat

#5 kevingauvin

kevingauvin
  • Members
  • 16 posts

Posted 03 February 2009 - 05: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



#6 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 03 February 2009 - 09:21 PM

Are the Samples\FTP\Scripts working?

#7 kevingauvin

kevingauvin
  • Members
  • 16 posts

Posted 04 February 2009 - 01: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?



#8 mb

mb

    Developer

  • Administrators
  • 11521 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 04 February 2009 - 04: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

#9 kevingauvin

kevingauvin
  • Members
  • 16 posts

Posted 04 February 2009 - 04:57 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users