Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

martin

Re: filename with spaces in batchmode

I'm not sure. It is rather Windows batch-file question. It is even possible (probable) that Windows shell does not support that. As an alternative you can create a temporary WinSCP script file by your batch file and run it.
arothe

filename with spaces in batchmode

Hi!
I try to send a file to a SSH server in batchmode. The following command I have used:

winscp3.exe sftp://user@server /privatekey=key.ppk /log=logfile.txt /console /command "option batch on" "option confirm off" "option transfer ascii" "cd /transfer-dir" "put %1" "close" "exit"

%1 is a parameter of a batch file. This parameter contains a filename with a path. Sometimes the path contains space characters and the batch doesn't work. The %1 contains also "", but these characters seems not to be in the executed command line. How I can solve that problem?

Thanx
Andre