D
Damon Payne
This seems like it should be simple but is eluding me at the moment:
I'd like to use code to execute several built-in DOS commands on CE.NET
4.2; I can use Process.Start to run any EXE or cab file I've created
but not built-in commands like mkdir, del, etc.
ProcessStartInfo startInfo = new ProcessStartInfo("mkdir", "/storage
card/foo");
startInfo.UseShellExecute = false;
Process proc = Process.Start( startInfo );
System.IntPtr handle = proc.Handle;
proc.WaitForExit();
int code = proc.ExitCode;
proc.ExitCode throws an InvalidOperationException. My first idea is
that I need to include the entire path to "mkdir.com" or something like
that, but I do not see them.
I'd like to use code to execute several built-in DOS commands on CE.NET
4.2; I can use Process.Start to run any EXE or cab file I've created
but not built-in commands like mkdir, del, etc.
ProcessStartInfo startInfo = new ProcessStartInfo("mkdir", "/storage
card/foo");
startInfo.UseShellExecute = false;
Process proc = Process.Start( startInfo );
System.IntPtr handle = proc.Handle;
proc.WaitForExit();
int code = proc.ExitCode;
proc.ExitCode throws an InvalidOperationException. My first idea is
that I need to include the entire path to "mkdir.com" or something like
that, but I do not see them.