I recently met a issue that: when starting our app by command line way (passing several arguments to the app), on win7, the specified file can always be opened after lanuching our app, while on XP, the file is always not able to be opened! The final reason is that: for arguments that contain whilespaces, when starting a process with it passed in, on XP, it will split it by whilespaces so no valid file can be found so that file won't be opened; while on win7, it can always be treated as one argument. whatever, to mark a argument explicitly, always quote it. see below sample code.
Void main (string [] ARGs)
{
String file = "C :\\ Program Files \ Autodesk \ AutoCAD 2010 \ acad.exe ";
String name = "C: \ Documents and Settings \ taox \ Local Settings \ temp \ _ solid_temp.dwg ";
File = "\" "+ file + "\"";
Console. writeline (name );
String strinfo = Name + "/FI/nologo/extapp: leleapplication1 ";
Processstartinfo startinfo = new processstartinfo (file, strinfo );
Process pp = process. Start (startinfo );
Pp. waitforexit ();
}