M
Mark Hemker
Is there a way to issue an arbitrary DOS commands and see
the output? The commands will be entered by the user
into a text box. I want to be able to handle commands
like DIR, COPY, DELETE, etc. I know I could write the
code for each of these commands, but I won't necessarily
know all of the possible commands that will be issued. I
would like to take the text that the user enters into the
text box and issue that command as if the process were at
a Windows Command prompt.
I have looked at System.Diagnostics.Process and
System.Diagnostics.ProcessStartInfo but that only seems
to handle executing programs, not necessarily issuing
commands.
Mark
the output? The commands will be entered by the user
into a text box. I want to be able to handle commands
like DIR, COPY, DELETE, etc. I know I could write the
code for each of these commands, but I won't necessarily
know all of the possible commands that will be issued. I
would like to take the text that the user enters into the
text box and issue that command as if the process were at
a Windows Command prompt.
I have looked at System.Diagnostics.Process and
System.Diagnostics.ProcessStartInfo but that only seems
to handle executing programs, not necessarily issuing
commands.
Mark