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: file not found error when try to transfer the file with spac

winscp.com /console /command "option batch on" "option confirm off" "open user:pwd@myServer" "cd Upload" "put ""My SFTPTest.txt""" "exit" /log="C:\temp\Winscp.log"
Please read
https://winscp.net/eng/docs/scripting#syntax
Vichu

file not found error when try to transfer the file with spac

I am getting file not found error when I try the following cmd

winscp.com /console /command "option batch on" "option confirm off" "open user:pwd@myServer" "cd Upload" "put My SFTPTest.txt" "exit" /log="C:\temp\Winscp.l
mazott

Actually, I'm not quoting. As I found that scripting can be done, that is the likely solution I was looking for. Thank you for reply so far.
martin

Re: Handling filenames with spaces

You can quote them in WinSCP too. Supposing you are using scripting interface of WinSCP.
mazott

Handling filenames with spaces

Hello,
I believe this is an already answered question but here it goes.

I should upload a set of files whose names contain space characters. The upload is from a Windows host running WinSCP to a Unix ftp sever.
The obvious problem is that the Unix host doesn't allow writing filenames of such kind. More in general, using a vanilla command line ftp client I would use quoting the names in my put commands. How could I do that using WinSCP?
Thank you, Marco