Post a reply

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)


Topic review


Got it. Needed to put the file path that has a directory with spaces in it in double quotes.

In the examples I found the %2% was used to count for space in a file path. Is there another variable I should use?

Does the directory really have a name Vendor%2%Data?

The %2% has a special meaning in WinSCP. It's replaced by the second argument of the script. But you do not pass any. Maybe you wanted to?

See attached log file.

Re: Put function without naming file

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Put function without naming file

I'm running the below script but I get an error, "No file matching '*' found." Ultimately, I would like to set the name of the file that will be loaded on the remote directory but nothing is working at this point. I've tried using *.txt and it has not worked either. The file name is 7-digits and can be random but it's always a text file.

put -neweronly -filemask=*>24H C:\ats\Vendor%2%Data\* /home/ftp/files/Data/ATS/Vendor/

Anyone have any advice?