I want to change the BCD from my .NET application. To do so, I've created this little snippet:
static void RunBcdEdit()
{
Process process = new Process();
process.StartInfo.FileName = "c:\\Windows\\System32\\bcdedit.exe";
process.StartInfo.UseShellExecute = false;
process.WaitForExit();
}
The strange thing is that it throws an exception saying that
the system cannot find the file especified
What's wrong with this?