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

Advertisement

dwentz
Guest

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

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
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>

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Unknown Command '????' in C# .Net Application

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.

Reply with quote

halka
Joined:
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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: unknown command

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.

Reply with quote

martin
Site Admin
martin avatar

Re: unknown command

RaymondHasty wrote:

I'm facing same problem... RaymondHasty@ComCast.Net
I have sent you an email.

Reply with quote

Advertisement

You can post new topics in this forum