Re: Syntax for filenames with spaces
You need:
See https://winscp.net/eng/docs/commandline#syntax
Though in PowerShell, you better use WinSCP .NET assembly:
https://winscp.net/eng/docs/library_powershell
... `"put `"`"$filepath`"`"`" ...
See https://winscp.net/eng/docs/commandline#syntax
Though in PowerShell, you better use WinSCP .NET assembly:
https://winscp.net/eng/docs/library_powershell