Topic "Access Denied with correct Userid/pwd"

Author Message
Sowmya
[View user's profile]

Joined: 2010-08-03
Posts: 10
Location: Bangalore
Hi,

I get a access denied error while connecting through winscp scripting feature in vb.net although the password is correct. Thesame works perfect in console. Could you please let me know what is wrong in teh below code?

With WinSCP.StandardInput
.WriteLine("option transfer binary")
.WriteLine(str6)
.WriteLine(str8)
End With
WinSCP.StandardInput.Close()
WinSCP.WaitForExit()
the WinSCP.ExitCode always gives a value of 1 even if the userid /pwd is correct.

Could you please help me on this.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I do not know what the str6 and str8 variables contain. If they contain username/password, you need to pass then as arguments to open command.
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