Get FileName of the Files transferred from ftp

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
karen1603
Posts: 2
Joined: Wed Oct 17, 2012 6:32 am

Get FileName of the Files transferred from ftp

Post by karen1603 » Wed Oct 17, 2012 6: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.

Post Reply