Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

working with the command line

How would I go about opening a new windows command line console so that I can issue commands to it.
0
ARACK04
Asked:
ARACK04
1 Solution
 
whatsit2002Commented:
The command you are looking for is: cmd

To run something via your code, though, you probably want to look into
System.Diagnostics.Process.Start(path)

The path variable should contain something like: C:\Windows\Notepad.exe

That will open Notepad in the security context of the current user.

Thanks.

Jason
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now