我这有个批处理,我想用它在20秒后实现按下F10键,别的键也行.在代码中我想用wang.exe代替按一个键. 先看代码: @Echo Off ECHO 准备启动安装程序 Echo ‖ ‖ Echo ‖ ‖ Echo ‖ ‖ Echo ‖ ‖ Echo ‖ ‖ Echo ‖ ‖ Echo 正在安装Pubwin程序 start D:\sysset\按键精灵.exe ping 127.0.0.1 -i 5 >nul call :1 Echo 3.. Echo 2.. Echo 1.. Echo 关闭 start wang.exe exit :1 @echo off & setlocal enableextensions echo WScript.Sleep 1000 > %temp%\tmp$$$.vbs set /a i = 20 :Timeout if %i% == 0 goto Next setlocal set /a i = %i% - 1 cls echo DOS倒计时程序:小何 echo ################################## echo # # echo # [%i%]秒后程序开始运行 # echo # # echo ################################## cscript //nologo %temp%\tmp$$$.vbs goto Timeout goto End :Next cls & echo. for %%f in (%temp%\tmp$$$.vbs) do del %%f