问一个启动其他可执行程序的问题
try{
string path = "" ;
string ugfilename = "ugraf.exe" ;
string UGBase = System.Environment.GetEnvironmentVariable("UGII_BASE_DIR") ;
path = UGBase + "\\UGII\\" ;
Process UGProcess = new Process() ;
UGProcess.StartInfo.FileName = path + ugfilename ;
UGProcess.Start() ;
}
catch( Win32Exception ugstarte )
{
MessageBox.Show(ugstarte.ToString()) ;
}
为什么老告诉我invalid filename 啊, 我在vc++里面做过,思路是一样的啊,怎么就搞
不定呢,而且在windows“开始”里面运行这个可执行文件能够运行的,路径应该没问题
who can tell me ? thx a lot