PowerShell example for downloading latest file
Hi,
I am new to scripting and opted for the PowerShell example purely because I have PowerShell on my laptop.
In the example that is supplied on the website I am having issue with the code and suspect that it is related to me not the example.
Here is the example that you have supplied:
https://winscp.net/eng/docs/script_download_most_recent_file#powershell
My first thought it was going to be straight forward, however had an issue registering
After inserting a
Any help would be great
Regards
Steve
I am new to scripting and opted for the PowerShell example purely because I have PowerShell on my laptop.
In the example that is supplied on the website I am having issue with the code and suspect that it is related to me not the example.
Here is the example that you have supplied:
https://winscp.net/eng/docs/script_download_most_recent_file#powershell
My first thought it was going to be straight forward, however had an issue registering
winscpnet.dll
then an issue with the script DirectoryInfo
was not a cmd, I guess that this line needed a $
before the command.
After inserting a
$
, the script now moves onto the next issue.
Can some one please point me in the right direction I have ensured that I have two files in the folder and while they have the same date stamp they do have different time stamps.Can't get attributes of file '/usr/xxx/xxx.cvs'
Any help would be great
Regards
Steve