您的位置:程序门 -> .net技术 -> c#



进程启动问题


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


进程启动问题
发表于:2008-01-21 18:39:58 楼主
1.
process   mpro   =   new   process();
mpro.startinfo.filename   =   system.io.directory.getcurrentdirectory()+"\\xp3.exe";
mpro.start();

2.
shellEXECute(intptr.zero,        
          new     stringbuilder("open"),        
          new     stringbuilder(system.io.directory.getcurrentdirectory()+"\\xp3.exe"),    
          new     stringbuilder(""),    
          new     stringbuilder(""),     1);  

各位朋友,为什么上面两种启动进程的方法在有的电脑上就没有效果,好像是start不了。有没有什么好的解决方法。
发表于:2008-01-22 14:21:061楼 得分:0
有异常吗?信息是什么?

system.io.directory.getcurrentdirectory
xp3.exe是否在当前路径下?
当前路径中是否有空格?


快速检索

最新资讯
热门点击