Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

iceporing

Please refer this doc.
https://winscp.net/eng/docs/library_session_movefile

The code would something like
$session = New-Object WinSCP.Session
 
$session.Open($sessionOptions)
 
session.PutFiles(localPath/fileName, remotePath/fileName).Check();
 
session.MoveFile(remotePath/fileName, remotePath/processed_fileName);
kjjka145

Rename a file

I want to rename a file after I upload it from fileName to processed_fileName.

K