原帖由 <i>slore</i> 于 2011-4-27 10:37 发表 <a href="http://bbs.wuyou.net/redirect.php?goto=findpost&pid=2216099&ptid=192357" target="_blank"><img src="http://bbs.wuyou.net/images/common/back.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open(this.src);}" onmousewheel="return imgzoom(this);" alt="" /></a><br />
正如我所说的,打开运行对话框的时候是要到用户的主目录去。<br />
基本上流程是:<br />
1.获取HOMEDRIVE环境变量<br />
2.获取HOMEPATH环境变量<br />
3.Append连接字符串<br />
4.检测路径是否合法<br />
5.1.成功则运行对话框的工作路径为用 ...
| 欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) | Powered by Discuz! X3.3 |