Sorry, here is the code
ProcessStartInfo startInfo = new ProcessStartInfo( "snap2.pif", "" );
startInfo.RedirectStandardInput = true;
startInfo.RedirectStandardOutput = true;
startInfo.UseShellExecute = false;
Thread.Sleep( 1000 );
Process snapToIt = Process.Start( startInfo );
StreamWriter writer = snapToIt.StandardInput;
StreamReader reader = snapToIt.StandardOutput;
writer = new StreamWriter( writer.BaseStream, new
System.Text.ASCIIEncoding() );
writer.AutoFlush = true;
writer.Write( (byte)'x' );
writer.Write( (byte)'x' );
writer.Write( (byte)'x' );
writer.Write( (byte)'x' );
writer.Write( (byte)13 );
writer.Write( (byte)'s' );
writer.Write( (byte)'i' );
writer.Write( (byte)'=' );
writer.Write( (byte)'p' );
writer.Write( (byte)'r' );
writer.Write( (byte)'o' );
writer.Write( (byte)'d' );
writer.Write( (byte)13 );
writer.Write( (byte)13 );
writer.Write( (char)121 );
As you can see i have tried using bytes instead of chars to be "more 16 bit
compliant" but to no avail. I also have tried changing the formatter to be
ascii and that hasn't helped.
Thanks for the help
"Greg Young" <gr********@planetbeach.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
well there are a few things that could be happenning ... can you put up
your code ?
"Matt Osborne" <pr*****@stupidSpamer.net> wrote in message
news:4X*****************@newssvr27.news.prodigy.co m... Hello all.
I have an application that i am writing to automate an older system.
The system is based on a 16-bit DOS application. It apears to me that I am
unable to redirect input and output to and from the application. Does
anybody know if i am missing something simple?
Thanks