 
- 帖子
- 359
- 积分
- 523
- 技术
- 34
- 捐助
- 0
- 注册时间
- 2021-6-19
|
本帖最后由 yakeyun 于 2021-8-5 23:22 编辑
回复 3# 5i365
@echo off
::a.bat
(echo,@echo off
echo,if exist test.bat del test.bat
echo,call notepad
echo,call b.bat
)>a.bat
::b.bat
echo,@echo off >b.bat
echo,del a.bat >>b.bat
echo,call calc >>b.bat
echo,:run >>b.bat
echo,tasklist /nh ^>C:\kill.ini >>b.bat
echo,find /I /C "Calculator.exe" C:\kill.ini > nul >>b.bat
echo,if %%ERRORLEVEL%% == 1 (call c.bat^&del b.bat^&taskkill /f /im cmd.exe) else (goto run) >>b.bat
::c.bat
(echo,@echo off
echo,start wordpad
echo,del %%0
)>c.bat
start /min a.bat |
|