Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

waynehess

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.
martin

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

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" ^
waynehess

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" ^
waynehess

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