[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
看看有没有 choice 命令?
或者这样:
  1. @echo off&setlocal enabledelayedexpansion
  2. set input=y
  3. %1 goto input
  4. (del input.txt
  5. for /l %%a in (10 -1 1) do (
  6. if not exist input.txt ping /n 2 127.1&title 倒数%%a秒<nul>con
  7. )
  8. if exist input.txt (title  ) else taskkill /f /fi "windowtitle eq 管理员:  input*" /im cmd.exe&set input>con
  9. pause&exit
  10. )>nul 2>nul
  11. :input
  12. start /b "" %0 :
  13. title input
  14. set /p input=Input:
  15. echo !input!>input.txt
  16. set input
  17. pause>nul
复制代码

TOP

返回列表