environment-path

c# Check if an executable exists in the windows path

If I run a process with ShellExecute (or in .net with System.Diagnostics.Process.Start()) the filename process to start doesn't need to be a full path. If I want to start notepad, I can use Process.Start("notepad.exe"); instead of Process.Start(@"c:\windows\system32\notepad.exe"); because the direcotry c:\windows\system32 folder i...