Put function without naming file

Advertisement

prmayer
Joined:
Posts:
5

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?

Thanks,
Paul

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

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.

Reply with quote

martin
Site Admin
martin avatar

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?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum