I have a program that stores a path to an exe acquired from an OpenFileDialog and saves it to a registry entry. When the main form loads, the path in the registry entry is stored in a string variable.
If I attempt to launch the exe using System.Diagnostic.Process.Start(strPath) the program will appear in my task manager, but it always fails to start properly. No taskbar button appears, no window appears, only that item in the processes window.
However, if I use OpenFileDialog1.Filename directly in the Process.Start, it works fine. I checked the path string before and after it was saved as a register entry, and they were identical. Why is it, then, that the program launches correctly from the file path ONLY if it wasnt retrieved from a registry entry? This one has me completely stumped.
If I attempt to launch the exe using System.Diagnostic.Process.Start(strPath) the program will appear in my task manager, but it always fails to start properly. No taskbar button appears, no window appears, only that item in the processes window.
However, if I use OpenFileDialog1.Filename directly in the Process.Start, it works fine. I checked the path string before and after it was saved as a register entry, and they were identical. Why is it, then, that the program launches correctly from the file path ONLY if it wasnt retrieved from a registry entry? This one has me completely stumped.