|
本帖最后由 窄口牛 于 2019-9-13 08:47 编辑
- @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>
复制代码
do echo;%%a修改为do copy 1.txt %%a\1.txt |
评分
-
查看全部评分
|