First, thanks for pointing out the problem with missing
Regarding the error: What is
/usr/xxx/xxx.cvs? Is it a path you set
$remotePathto? The purpose of the script is to find the latest file in a directory. So the
$remotePathshould be set to a path to the directory, not a specific path.
Posting a complete error message, or even better a log file, would help.
When I run the Powershell script it does not create a log file
After looking at the error I can see that on the remote path I am missing the / at the end I have added the / for the path and it appears to be working now.
Many thanks for your help