Process.Start()
only seems to work on a shortcut whose the target is located in the Program Files (x86)
folder and not in the Program Files
folder.
If the target is in the Program Files
folder I get the fallowing error
"The system cannot find the file specified" (run-time error)
Why does this happen, and is there any way to fix this so I can open shortcuts whose targets are in the Program Files
folder.
If it matters - I have Windows 7 Ultimate
Edit
Here is my code
public class MainClass
{
static void Main()
{
Process.Start(Path.Combine(Directory.GetCurrentDirectory(), "Blender") );
Console.ReadLine();
}
}
Edit 2 - My Solution
I've come to suspect the problem was with my IDE(Xamarin Studio). So I installed Visual studio, turned off prefer 32 bit and set it to AnyCPU and it worked. I don't know why Xamarin Studio was doing to cause this problem, but I know visual studio made it go away.