Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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)


Topic review


Re: PowerShell Code Error (WinSCP provided code)

What "powershell script provided by WinSCP" do you mean? There's no script for "syncing the directories and deleting the file downloaded" provided by default with WinSCP.
Do you rather mean that you have copied the code from this page?

The code requires the latest version of WinSCP. You are probably not using an up to date version.

PowerShell Code Error (WinSCP provided code)


im trying to use the code for syncing the directories and deleting the file downloaded from the remote directory but i get a "Error: Unable to find type [WinSCP.RemotePath]" the file downloads but does not delete it from the remote path.

Im using the default powershell script provided by WinSCP