Topic "Error on put multiple files"

Author Message
BuffaloSun

Guest


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...
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
What errors? Can you post a log file using the latest version?
_________________
Martin Prikryl
reddypa

Guest


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'
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
As the error says, there's no mput command. What do you miss about put?
_________________
Martin Prikryl
reddypa

Guest


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
reddypa

Guest


Sorry fro wasting your time...the issue was PEBCAK - not the put command at all.
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