Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: unknown command

RaymondHasty wrote:

I'm facing same problem... RaymondHasty@ComCast.Net

I have sent you an email.
RaymondHasty

Re: unknown command

I'm facing same problem... RaymondHasty@ComCast.Net
martin

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

unknown command

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

my email is shantanu...@gmail.com
dwentz

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

I have sent you an email for the debug version
halka

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
martin

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

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>