IE浏览器打开C盘,测试可用. 如果浏览器报错提示:ActiveXObject is not defined Internet 选项 -> 安全 - >安全级别,调低级别 function openFileIIs(){ try{ var obj=new ActiveXObject("wscript.shell"); if(obj){ obj.Run("c:/", 1, false ); //obj.run("osk");/*打开屏幕键
'显示打开文件夹对话框 With Application.FileDialog(msoFileDialogFolderPicker) .Show Then Exit Sub '未选择文件夹 strFolder = .SelectedItems() End With '获取文件夹中的所有文件列表 varFileList = fcnGetFileList(strFolder) If Not IsArray(varFileList) Then MsgBox "未找到文件", vbInform
System.Diagnostics.Process.Start("Explorer.exe", @"C:\Users\gnt-wangt\Documents\Visual Studio 2010Projects\Portal\Portal\Image\Uploads\ToolsOrPlug"); 第一个参数用什么打开.第二个参数为需要打开文件夹的路径.
@echo off rem 建立链接 net use \\192.168.2.3\share /user:username password rem 打开共享文件夹 explorer \\192.168.2.3\share Pause net use \\192.168.2.3\share /delete Exit 附Explorer命令的用法: Explorer [/n][/e]<,/root],[path><,/select],[path filename> 参数说明 /n表示