该方法只支持IE.
var wsh = new ActiveXObject("WSCript.shell"); var src = "/select," + FilePath; wsh.run("explorer.exe " + src);