karen1603
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.
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.