Re: Download Files and SubFolders with Powershell
WinSCP GUI can generate such code for you:
https://winscp.net/eng/docs/guide_automation#generating
And actually, you can use this code:
https://winscp.net/eng/docs/library_session_getfiles#powershell
Just pass
https://winscp.net/eng/docs/library_session_getfiles
https://winscp.net/eng/docs/guide_automation#generating
And actually, you can use this code:
https://winscp.net/eng/docs/library_session_getfiles#powershell
Just pass
$True
to third (optional) argument (remove
) of Session.GetFiles
.
https://winscp.net/eng/docs/library_session_getfiles