Error handling and Powershell
Good Afternoon,
I am new to the world of WINSCP and Powershell.
In have written a script to get some files from a server, that works well. However I am trying to capture a success/fail parameter.
I am running the below command, if anyone know how to script testing for success or fail. I would be grateful.
Receive-WinSCPItem -localpath $localpath -RemotePath /users21/test/test.csv
Thank you
Richard
I am new to the world of WINSCP and Powershell.
In have written a script to get some files from a server, that works well. However I am trying to capture a success/fail parameter.
I am running the below command, if anyone know how to script testing for success or fail. I would be grateful.
Receive-WinSCPItem -localpath $localpath -RemotePath /users21/test/test.csv
Thank you
Richard