Remove leading path from source files (getfiles, multi-file)
This Powershell code is used to download all files from the remove server's "/In" directory.
It saves files in "D:\temp\In", but I want the files to be saved in "D:\temp". How do I remove the leading "In" part of the source file names?
WinSCP 5.5.6 (build 4746).
# Powershell Add-Type -Path "C:\Program Files (x86)\WinSCP\WinSCPnet.dll" $remotePath = "/In"; $localPath = "D:\temp"; $removeRemote = $TRUE; [..] $transferResult = $session.getfiles($remotePath, $localPath, $removeRemote);
WinSCP 5.5.6 (build 4746).