本帖最后由 pcl_test 于 2016-7-12 17:39 编辑
文件夹选择框- <!-- :
- @echo off
- for /f "delims=" %%a in ('mshta "%~f0"') do echo;%%a
- pause&exit /b
- -->
-
- <script>
- var Shell = new ActiveXObject("Shell.Application");
- var Folder = Shell.BrowseForFolder(0, "请选择文件夹", 0); //起始目录为:桌面
- if (Folder != null) {
- Folder = Folder.items();
- Folder = Folder.item();
- Folder = Folder.Path;
- new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).Write(Folder);
- }
- close();
- </script>
复制代码
|