Scripting

jmorris

2008-07-03 06:29:17

New user here. I purchased the PRO option and understood it had scripting functionality. I can't find anything about scripting in the help or in any of the menus.

Thanks

mb

2008-07-03 06:40:44

You can find more information here:
https://www.smartftp.com/forums/SmartFTP ... 13484.html

Regards,
Mat

jmorris

2008-07-07 19:08:14

mb

2008-07-07 19:29:44

This is exactly what scripting is considered in this industry. You can use VBScript, JavaScript or any other language that supports COM etc to automate a process. In this case you would automate a transfer.

You can find sample scripts in the SDK and many more in the FTP Library: https://www.smartftp.com/ftplib/download

Regards,
Mat
SmartFTP

broncozr

2008-07-15 17:28:33

I would be interested in automating the daily upload of several files that have filenames based on the date, e.g. 7-15-08_Some-File_01.mp3. I'm not well-versed in COM. Could anybody direct me to a starting point? I would probably use PHP/Windows Scheduler to do this every afternoon.

Thanks in advance!

mb

2008-07-15 18:16:45

Hello ..

I recommend to take a look at the VBScript and JavaScript examples in the FTP Library:
https://www.smartftp.com/ftplib

There is also a PHP example.

Regards,
Mat

broomm

2008-07-22 14:02:59

Hi,

I too have just upgraded to 4 Pro licenses as I was happy to see support for SFTP and Scripting :

Scripting
Create scripts to fully automate SmartFTP.

What does the above line in the editions breakdown at https://www.smartftp.com/features/editions.php actually mean if you are saying that a special license for the FTP Library (SDK) is required to write VB.NET / PHP etc. scripts?

This is somewhat confusing. Hope you can explain exactly what the Pro version gives in the way of scripting on its own.

Thanks
Mark

mb

2008-07-22 18:44:15

You don't need to purchase a license for the FTP Library. But the FTP Library contains examples you can use.

Scripting in the Professional Edition
You can create scripts to automate SmartFTP. SmartFTP uses the FTP Library. And you can use the FTP Library component through the SmartFTP object/application. A Pro License for SmartFTP is required for each user of the application/script you develop.

License for FTP Library
You can create your own applications which use the FTP Library. You can distribute your application and the users of your application do not need to have SmartFTP installed or they don't need a license for SmartFTP Pro.

Regards,
Mat

broomm

2008-07-24 09:27:02

Hi Thanks for the info.

I've written a simple VB.NET app and taken the sfFTPLib.dll from my Pro version install of SmartFTP. The app works great but when trying to load my Pro License Ley information using the objGlobal.LoadLicenseKeyFile or objGlobal.LoadLicenseKeyData methods the method returns an error.

Can / do I need to load my Pro License in this way?

Thanks
Mark



You don't need to purchase a license for the FTP Library. But the FTP Library contains examples you can use.

Scripting in the Professional Edition
You can create scripts to automate SmartFTP. SmartFTP uses the FTP Library. And you can use the FTP Library component through the SmartFTP object/application. A Pro License for SmartFTP is required for each user of the application/script you develop.

License for FTP Library
You can create your own applications which use the FTP Library. You can distribute your application and the users of your application do not need to have SmartFTP installed or they don't need a license for SmartFTP Pro.

Regards,
Mat

mb

2008-07-24 13:58:09

Hello ..

You cannot/don't need to load the Pro license with the LoadLicenseKey function. Create the FTPConnection object through the SmartFTP application object. You can find a sample in the SDK.

Regards,
Mat