I am usinf vs2008 c# to open a file with wordpad. I am using the code
rtInfo) to start wordpad. The file I am interested in can contain a space. Wordpad works fine with a file containing no spaces in the filename.
I tried adding %1% at the end of the wordpad name, but that did not work. My code is below.
Again, this works fine for a file such as "C:\\data1b.dat";
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.FileName = "wordpad.exe";
startInfo.Arguments = "C:\\Program Files\\GuiDM\\Examples\\data1b.dat";