Topic "Unknown Command '????' in C# .Net Application"

Author Message
dwentz

Guest


I have the code listed below which is basically a modified version of the C# .NET example provided on the WinSCP site. When I print the standard output to a log it shows the command being passed in as ???? instead of "open test". No matter what command is passed in it gets translated to question marks. Is this possibly an encoding issue. This is a .NET 4 Framework application.

Code
Code:
Process winscp = new Process();
      winscp.StartInfo.FileName = "winscp.com";
      winscp.StartInfo.Arguments = "/log=\"log.xml\"";
      winscp.StartInfo.UseShellExecute = false;
      winscp.StartInfo.RedirectStandardInput = true;
      winscp.StartInfo.RedirectStandardOutput = true;
      winscp.StartInfo.CreateNoWindow = true;
      winscp.Start();
      winscp.StandardInput.WriteLine("open test");
      string output = winscp.StandardOutput.ReadToEnd();
      TraceService(output);



Output in log file
winscp> ????
Unknown command '????'.
winscp>
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
_________________
Martin Prikryl
halka
[View user's profile]

Joined: 2011-10-28
Posts: 1
Location: Zilina, Slovakia
Heh, I've actually registered right now to ask the exact same question. Appears in the 5.0.3 beta I'm using, stable version is unaffected. My particular problem exists with scripting from Python 2.7/3.2
dwentz
[View user's profile]

Joined: 2011-11-03
Posts: 1
prikryl wrote:
Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.


I have sent you an email for the debug version
shantanu

Guest


Same problem i am facing can u tell me the solution ???

my email is shantanu...@gmail.com
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
shantanu wrote:
Same problem i am facing can u tell me the solution ???

my email is shantanu...@gmail.com

I have sent you an email.
_________________
Martin Prikryl
RaymondHasty

Guest


I'm facing same problem... RaymondHasty@ComCast.Net
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
RaymondHasty wrote:
I'm facing same problem... RaymondHasty@ComCast.Net

I have sent you an email.
_________________
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