I used C# with a console program to create a new cmd process, did not redirect stdin or stdout, so I could type into the command line from here. (I was having trouble using telnet from there, so this step was just an investigation.) Able to type into the window and receive output. When I switched to c:Windows\system32, typing dir te*.exe shows nothing. In another command prompt I created directly, I see the file (telnet.exe). Any suggestions about what is wrong?
{
ProcessStartInfo startInfo = new ProcessStartInfo(@"cmd.exe");
startInfo.UseShellExecute = false;
startInfo.CreateNoWindow = true;
startInfo.WindowStyle = ProcessWindowStyle.Normal;
startInfo.CreateNoWindow = false;
startInfo.Arguments = host;
using (Process p = new Process())
{
p.StartInfo = startInfo;
p.Start();
}
}