07 2013 档案

摘要:windows系统是调用了系统命令explorer和他的 /select参数,经过尝试,完整的命令是这样的,例如定位c:\boot.ini文件,cmd命令:>explorer /select,c:\boot.ini这样任务转化为js调用系统命令,果然有这个功能,通过WScript.shell 的run函数,js和vb都有。完整的js调用代码是: var wsh = new ActiveXObject("WSCript.shell"); var src = /select,c:\boot.ini; wsh.run("explorer.exe "+sr 阅读全文
posted @ 2013-07-15 20:27 kkka 阅读(206) 评论(0) 推荐(0)
摘要:C# 实现:private void OpenFolderAndSelectFile(String fileFullName){ System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo("Explorer.exe"); psi.Arguments = "/e,/select," + fileFullName; System.Diagnostics.Process.Start(psi);}参考:Windows 资源管理器参数的用法。Explorer 阅读全文
posted @ 2013-07-09 19:09 kkka 阅读(574) 评论(0) 推荐(0)