I have little to no experience on C#, but I am very much willing to learn. I am trying to create an application with a button that launches an executable. The application gets ran from an USB Flash drive. Lets say the flash drive has driveletter (e:) on my computer. I want to run a program called rkill.exe from the bin directory.
private void opschonen_RKill_Click(object sender, EventArgs e)
{
var process_RKill = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "/bin/rkill.exe"
}
};
process_RKill.Start();
process_RKill.WaitForExit();
}
However, this does not work. If I launch the application from the root, it does work. I can't point to a driveletter, because not every computer assigns the driveletter to E:
What am I doing wrong? I suppose it's something simple, because I am just a beginner.