- <!-- :
- @echo off
- for /f "delims=" %%F in ('mshta "%~f0" ') do (echo,%%F)
- pause&exit/b
- -->
- <meta http-equiv="x-ua-compatible" content="ie=10">
- <input type=file id=f multiple accept=".txt,.bat,.cmd,.hta,.js,.vbs">
- <script>
- f.click();
- new ActiveXObject('scripting.filesystemobject').getstandardstream(1).write(f.value ? f.value : '');
- close();
- </script>
复制代码 有能力的大侠帮助将上面的代码修改为下面的式样,先谢谢各位大侠...- @ECHO OFF
- setlocal enabledelayedexpansion
- call :File_Input "files" "输入文件"&& echo 输入文件=!输入文件!
- echo Files=%files%
- echo 调试结束&&pause&&exit
-
-
- goto :eof
-
- ::**************************************************************
- :: 输入文件名称
- ::**************************************************************
- :File_Input
- Title ★★★★★ %~n0 %~2 ★★★★★
- if "%2" NEQ "" set %~2=No
- for /f "delims=" %%a in ('mshta " 代码 "') do set %~1="%%a"
- if "%~1" NEQ "" if "%2" NEQ "" set %~2=Yes
- Title ★★★★★ %~n0 ★★★★★
- goto :eof
复制代码
|