Topic "Put function without naming file"

Author Message
prmayer
[View user's profile]

Joined: 2016-01-27
Posts: 5
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?

Thanks,
Paul
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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.
prmayer
[View user's profile]

Joined: 2016-01-27
Posts: 5
See attached log file.
log160216.txt (7.74 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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?
prmayer
[View user's profile]

Joined: 2016-01-27
Posts: 5
In the examples I found the %2% was used to count for space in a file path. Is there another variable I should use?
prmayer
[View user's profile]

Joined: 2016-01-27
Posts: 5
Got it. Needed to put the file path that has a directory with spaces in it in double quotes.
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