I have the following code:
Process p = new Process();
string myIP = "\\" + ipAddress.ToString() + "." + ipAddress.ToString() + "." + ipAddress.ToString() + "." + ipAddress.ToString();
p.StartInfo.WorkingDirectory = myIP + "\\C$\\SomeFolder1\\SomeFolder2\\SomeFolder3\\";
p.StartInfo.FileName = "someExecutable.exe";
p.StartInfo.CreateNoWindow = true;
p.Start(); <===== generating error "The system cannot find the file specified"
When I look stop and examine the myIP variable, I have the following:
I suspect that it may have something to do with those escape characters but I don't know for sure. Hopefully someone knows how to make this work.