Topic "$session.moveFile - no winSCP TransferOperationResult object returned"

Author Message
giermoivi

Guest


Hello

I am attempting to move a file from one ftp dir to another. since all work is done on ftp end, i just use the move command.

I would like it to reutrn status of move, but for the life of me cant figure it out, no 1/0, and no winSCP TransferOperationResult object returned ??


$moveResult = $session.moveFile( ($fullFileName), $successPath)

Any tips???

Thanks for the help
Advertisements
giermo
[View user's profile]

Joined: 2014-04-02
Posts: 9
This was done using powershell as the platform. as a FYI
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
The Session.MoveFile throws an exception on error.
giermo
[View user's profile]

Joined: 2014-04-02
Posts: 9
okay, Thanks!
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License