js打开所在文件夹并选中文件

该方法只支持IE.

var wsh = new ActiveXObject("WSCript.shell");  
var src = "/select," + FilePath;  
wsh.run("explorer.exe " + src); 

posted @ 2016-10-27 09:52  (john_zhang)  阅读(1325)  评论(0编辑  收藏  举报