I'm trying to write a small piece of code that disconnects two mapped drives and then remaps them. Then I want it to execute a program. I have it executing the program if it's notepad for example but not anything locate on a drive. Also how can I disconnect and map the drives?
Here is what I have:
This launches notepad, but how would I launch something in z:\program.exe ?
static void Main(string args)
Process schedule = new Process();
notepad.StartInfo.FileName = "notepad.exe";