How do I register my application to be executed in the command line?

.net, c#, cmd, command-line

Solution

Add the current directory to the PATH environment variable. Preferably the PATH environment variable of your profile, not the system profile whenever possible

Problem

Just typing `notepad` in CMD is enough to open it. So is executing `Process.Start("notepad");` . How do I get my application to be executable from anywhere without having to specify the complete path?

Original source

Related problems