Jump to content


Photo

FTP Job to Upload then Move Files


  • Please log in to reply
6 replies to this topic

#1 scorch

scorch
  • Members
  • 5 posts

Posted 16 July 2010 - 04:59 PM

Can SMART FTP be setup to upload files, then if successful, move them to another folder?

If so, are there any examples, documentation or tutorials showing this?

Let me know.

p.s. If SMART FTP can do this, I believe my company will purchase it. Thanks!

#2 mb

mb

    Developer

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

Posted 16 July 2010 - 08:07 PM

Yes this is possible. Download the SmartFTP SDK:
http://www.smartftp.com/features/sdk/

Then use following script:
Location: Samples\TransferQueueItem\JScript\MoveSourceItemToFolder.js

#3 scorch

scorch
  • Members
  • 5 posts

Posted 17 July 2010 - 09:02 PM

thank you sir!

#4 scorch

scorch
  • Members
  • 5 posts

Posted 17 July 2010 - 09:40 PM

How can I set this up to upload *.xml files?

I can get it to move a whole folder, but then that whole folder is gone, and the job breaks. Can't figure out how to make it do a "mput *.xml" and then move if/when they succeed.

#5 scorch

scorch
  • Members
  • 5 posts

Posted 17 July 2010 - 09:43 PM

it seems the script deletes the files rather than move them

#6 mb

mb

    Developer

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

Posted 17 July 2010 - 10:18 PM

If you purchase a license we can develop a script (for free) that will move the files inside a particular folder only.

#7 scorch

scorch
  • Members
  • 5 posts

Posted 18 July 2010 - 08:51 PM

oh really? thanks for the information, I will ask my Boss on Monday




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users