script in batch

Advertisement

arnoldo.contreras
Joined:
Posts:
1
Location:
Guatemala

script in batch

Hello
somebody can help me please? :)
I need to use some wildcarts that provide a copy of all the files with extention .txt
I had used this
"cd /remotehost" ^
"put *.txt" ^
but when the script ran appears the message
"No file matching '*.txt' found.
Im newly in this code and im trying to create a very simple script in batchmode

Reply with quote

Advertisement

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

Re: script in batch

So are there any .txt files in the current local working directory?
Maybe you need to add lcd C:\local\source\path command.

Reply with quote

Guest

Re: script in batch

martin wrote:

So are there any .txt files in the current local working directory?
Maybe you need to add lcd C:\local\source\path command.

yes there are many .txt files in the local source and I´m using these entire commands instructions:

lcd Y:" ^
"cd /remotehost" ^
"put *.txt" ^
but it seems no file is found maybe because I´m not using the correct mask (*.txt)?
thanks

Reply with quote

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

Re: script in batch

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

To generate the session 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

Advertisement

You can post new topics in this forum