Topic "Handling filenames with spaces"

Author Message
mazott
[View user's profile]

Joined: 2010-08-06
Posts: 2
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
You can quote them in WinSCP too. Supposing you are using scripting interface of WinSCP.
mazott
[View user's profile]

Joined: 2010-08-06
Posts: 2
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.
Vichu

Guest


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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
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
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License