在程序中调用外部应用程序



如下是两种可行的做法:  
 
1.WinExec("notepad.exe",0);//当然了,还要考虑路径的问题  
 
2.WinExec("start myfile.txt",0);//调用默认打开txt文件的程序,打开该txt文件  
    
  WinExec("start myfile.doc",0);//调用默认打开doc文件的程序,打开该doc文件  
 

返回