Topic "Rename a file"

Author Message
kjjka145
[View user's profile]

Joined: 2013-11-11
Posts: 1
Location: USA
I want to rename a file after I upload it from fileName to processed_fileName.

K
iceporing
[View user's profile]

Joined: 2013-10-29
Posts: 4
Please refer this doc.



the code would something like

Code:

$session = New-Object WinSCP.Session

$session.Open($sessionOptions)

session.PutFiles(localPath/fileName, remotePath/fileName).Check();

session.MoveFile(remotePath/fileName, remotePath/processed_fileName);

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