using Get to pull a file from directory with a space in the name

Advertisement

waynehess
Joined:
Posts:
4
Location:
Blaine

using Get to pull a file from directory with a space in the name

A lot of the servers I connect to pull down files use folders with spaces in the name.
How do I get the WINSCP batch file to recognize those spaces to pull down the file
Thanks

Reply with quote

Advertisement

waynehess
Joined:
Posts:
4
Location:
Blaine

Re: using Get to pull a file from directory with a space in the name

martin wrote:

Not sure, what you mean by "WinSCP batch file".
But this should help you:
https://winscp.net/eng/docs/scripting#quotes
https://winscp.net/eng/docs/commandline#syntax

This is what I mean by the batch file.
In the Get Line when the folder that I'm pulling from has a space in it. All the examples I've seen on the forum have no spaces in the folder name

"option confirm off"^
"OPTION transfer binary"^
"GET \Hosted Export\transfinderTo_ICExport.csv d:\transfinder\transfinderTo_ICExport.csv" ^

Reply with quote

waynehess
Joined:
Posts:
4
Location:
Blaine

Re: using Get to pull a file from directory with a space in the name

martin wrote:

OK, so this link from the previous post gives you the answer:
https://winscp.net/eng/docs/commandline#syntax

    "GET ""\Hosted Export\transfinderTo_ICExport.csv"" d:\transfinder\transfinderTo_ICExport.csv" ^

Thanks, I had tried it with double quotes but apparently not double Double quotes.

Reply with quote

Advertisement

You can post new topics in this forum