Process.Start() parameter with space char problem
-
Hi, here is code line Process.Start(@"C:\test.exe", @"C:\Temp Dir\sequence.seq"); the thing is the second string, because it has space in the directory name the test.exe failes to open the file i've changed the location to : C:\sequence.seq and it works fine so it's not the file problem how can i handle the sapce in the string?? thanks :) :)
Have Fun Never forget it
-
Hi, here is code line Process.Start(@"C:\test.exe", @"C:\Temp Dir\sequence.seq"); the thing is the second string, because it has space in the directory name the test.exe failes to open the file i've changed the location to : C:\sequence.seq and it works fine so it's not the file problem how can i handle the sapce in the string?? thanks :) :)
Have Fun Never forget it
-
Wrap it in quotes;
Process.Start(@"C:\test.exe", "\"C:\\Temp Dir\\sequence.seq\"");
Enjoy :)
I are troll :)