Error on put multiple files

Advertisement

BuffaloSun
Guest

Error on put multiple files

Hello all,
I just start to use this software. So far so good. However, I am getting an error on using wild card to upload multiple files. Here is my script looks like:

option batch on
option confirm off
open sftp://my site
cd mydefault_dir
option transfer binary
put \\my_dummyfolder\mydummyfiles_*.CSV
close
exit

Thank you in advance...

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

What errors? Can you post a log file using the latest version?
_________________
Martin Prikryl

Reply with quote

reddypa
Guest

Re: Error on put multiple files

I have the same issue. In short... put works, mput does not. Below are my scripts. 1st the one that works (sends the first matching file it finds but no others) and 2nd the one that results in an error, also below.


WORKS - BUT IT ONLY SENDS 1 FILE
option batch on
option confirm off
open TALX -hostkey
put D:\TALX\Export\14138*
exit

DOES NOT WORK AT ALL
option batch on
option confirm off
open TALX -hostkey
mput D:\TALX\Export\14138*
exit

DOS ERROR FROM .bat FILE
Unknown Command 'mput'

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

As the error says, there's no mput command. What do you miss about put?
_________________
Martin Prikryl

Reply with quote

reddypa
Guest

put

What do I miss about put? I miss the fact that it doesn't move multiple files.

For example:
If C:\Temp\ contains 3 text files: Test1.txt, Test2.txt, & Test3.txt
The following command only moves one of the 3 files:
put C:\Temp\Test*.txt

That being said, is there a way to move multiple files using WinSCP - put does not move multiple files.

Thanks,

Pat

Reply with quote

Advertisement

You can post new topics in this forum