
CODE: [Copy to clipboard]如何让a.txt只以一个窗口显示呢?@echo off
:at
cls
start a.txt
ping 127.0.0 -n 2 >nul
goto at
CODE: [Copy to clipboard]@echo off
:at
cls
start a.txt
ping 127.1 -n 10 >nul
for /f "tokens=2 delims= " %%a in ('tasklist /fi "imagename eq notepad.exe" /v /fo table^|findstr /i /c:"a.txt - 记事本"') do (
taskkill /f /pid %%a
)
goto :at
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |