Jump to content


Photo

Get FileName of the Files transferred from ftp


  • Please log in to reply
No replies to this topic

#1 karen1603

karen1603
  • Members
  • 2 posts

Posted 17 October 2012 - 06:35 AM

I am trying to get the file name of the transferred file (test.txt) in my scheduled task in Smartftp, however I keep getting the foldername instead of the filename for (destinationFile). Below is my code. Please help? Thanks

function TransferQueueOperation::onend()
{
var item = TransferQueueOperation.TransferQueueItem;
if(TransferQueueOperation.Result == sfTransferQueueOperationResultSuccess)
{

var fso = new ActiveXObject("Scripting.FileSystemObject");
var destinationFile = fso.GetFileName(TransferQueueOperation.TransferQueueItem.Destination.Path);

}
}

Thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users