Rename a file
I want to rename a file after I upload it from fileName to processed_fileName.
K
K
Advertisement
Advertisement
$session = New-Object WinSCP.Session $session.Open($sessionOptions) session.PutFiles(localPath/fileName, remotePath/fileName).Check(); session.MoveFile(remotePath/fileName, remotePath/processed_fileName);
Advertisement
You can post new topics in this forum