Use the Process class and execute the program you want to run. If it's a
built-in cmd-command you want to run, just start "cmd.exe /c commandname"
The /c tells cmd to terminate when done and the commandname is the internal
command (and optional parameters) you want it to perform.
Arild
"Tim" <ti*@home.com> wrote in message
news:FH********************@news20.bellglobal.com. ..
Hi,
I want to run some command line instructions from within my C# windows
forms application. Basically when the application closes I want to logoff
the session if it was started remotely.
So how do I run text as if I was typing it into the command line?
Tim