Topic "Problem when using mput C:\fileName*"

Author Message
ashu.khetan
[View user's profile]

Joined: 2014-05-23
Posts: 2
Location: India
Hi,

I am using Script automation to upload some file on the server and have used the following script

option batch abort
option confirm off
open -hostkey=* sftp://username:password@server
put -transfer=ascii C:\testfile*
bye


The path C:\testfile* doesn't exist. Even then Winscp is not logging any error in xml error and is finishing with success. The command I am running for winscp is
winscp.com -script:scripPath -xmllog:logPath -ini:nul -log:somePath

Can you please answer how can I get winscp to exit with an error saying path C:\testfile* doesnt exist. I am using winscp.com version 4.0.3.4214
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
This request is tracked here:
http://winscp.net/tracker/show_bug.cgi?id=1172
ashu.khetan
[View user's profile]

Joined: 2014-05-23
Posts: 2
Location: India
and may I please know how the feature has been implemented? or the issue is raised as a bug and you will be fixing it in some newer build?

Please note this error is related to put and not the get command. I noticed using get with a non-existent file pattern already throws an error. But same is not true for put
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
ashu.khetan wrote:
and may I please know how the feature has been implemented? or the issue is raised as a bug and you will be fixing it in some newer build?

It's implemented (not fixed, it's not a bug) already. The change will be included into the next major release.

Quote:
Please note this error is related to put and not the get command. I noticed using get with a non-existent file pattern already throws an error. But same is not true for put

That should not be so . The get with file mask not matching any file should not throw an error. Please post a complete log file showing that.
_________________
Martin Prikryl
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