-
04-14-2008, 11:34 PM #1
Kill BF2142 Script
This was brought up in TS recently because the server crashed and a few people had to hard reboot. I must give all Credit to Lorax for this one, as he was the one that posted it in the 9th forums...
Open notepad or any text editor, copy the line below and paste it into the document.
Save this document into your "My Documents" folder and name it Kill_BF2142.vbs.Code:strComputer = "." Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colProcessList = objWMIService.ExecQuery ("SELECT * FROM Win32_Process WHERE Name = 'BF2142.exe'") For Each objProcess in colProcessList objProcess.Terminate() Next
In notepad, erase what you have or open a new text document and copy/paste the following lines:
Code:
c:\windows\system32\cscript.exe "%HOMEPATH%\My Documents\Kill_BF2142.vbs"
Save the file in your "My Documents" folder and name it Kill_BF2142.bat
Now map a key to launch the Kill_BF2142.bat file and you're all set, just don't hit it by accident.
*Update for Vista*
Updated for Vista:
Kill_BF2142.bat
Kill_BF2142.vbs unchangedCode:@echo off IF EXIST %systemdrive%\users ( REM Vista cscript %homepath%\Documents\Kill_BF2142.vbs ) ELSE ( REM assume it's XP cscript %homepath%\My Documents\Kill_BF2142.vbs )
Code:strComputer = "." Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colProcessList = objWMIService.ExecQuery ("SELECT * FROM Win32_Process WHERE Name = 'BF2142.exe'") For Each objProcess in colProcessList objProcess.Terminate() NextLast edited by Lorax74; 01-28-2009 at 02:13 PM.

|TG-9th|ZWood15
"By Any Means"
-
04-15-2008, 11:09 AM #2
Re: Kill BF2142 Script
Great work Lorax, and thanks for posting it for the rest of us ZWood.
Proud to have served in the 9th MID and 11th AIR
-
04-15-2008, 11:21 AM #3
Re: Kill BF2142 Script
Woo!! That's going to make things a lot easier!

Hadouken!!! (>*.*)> ==> ==> ==> ^(X.X)^



-
04-15-2008, 11:53 AM #4
-
04-15-2008, 01:25 PM #5
Re: Kill BF2142 Script
its to complicated for me
GO MANCHESTER UNITED ALL THE WAY!
HAIL CRISTIANO RONALDO
in game name= TG Shifty.P
2nd in the US with bianchi lmg for most kills
7th in the world with Bianchi LMG for most kills
K/D of 31/1 with bianchi
LYra=stop aimbotting shifty
-
04-15-2008, 06:49 PM #6
-
04-18-2008, 10:39 PM #7
-
04-19-2008, 12:00 AM #8
Re: Kill BF2142 Script
You can use this program to set up keybinds. You can map it to kill 2142 directly without using Lorax's script.
Once you install it will ask you if you want to create a sample script choose yes.
Run the program and a Green H will be in your system tray. Right click on it and choose "edit this script". You can erase everything in there and paste this line into it
if Process, Exist, "BF2142.exe" <> 0
end::Process, Close, BF2142.exe
return
Save the file, then right click on the H again and choose "reload script"
This sets it to the end key. Look in the help file for special key commands.
Note that this program must be running for the key bind to be active. I'd put it in the startup folder so it starts with Windows.
-
04-20-2008, 11:26 PM #9
Re: Kill BF2142 Script
Too much intelligent chatter!

So this is just something shutdown BF2142 when the server crashes?
-
04-21-2008, 04:57 AM #10
Re: Kill BF2142 Script
Essentially, yes. Its a way of Ctrl+Alt+Del out of the game, go to processes tab, and then force end the battlefield process. Its easier than rebooting

|TG-9th|ZWood15
"By Any Means"
-
04-29-2008, 10:57 PM #11
- Join Date
- Mar 2008
- Posts
- 392
Re: Kill BF2142 Script
w8, what is this for?
-
05-11-2008, 07:01 AM #12
- Join Date
- Jul 2007
- Location
- Mountain Home AFB, ID
- Posts
- 1,196
Re: Kill BF2142 Script
When I try to use it, it brings up the window but it says:
...My Documents\Kill_BF2142.vbs(2, 1) (null): 0x80041021
What, it doesn't like my RAM?
EDIT: never mind, there's a typo in the code. Didn't notice that.
ationLevel=impersonat e}!
That space shouldn't be there.
-
05-11-2008, 08:07 AM #13
-
05-13-2008, 11:57 AM #14
Re: Kill BF2142 Script




TG Primer - BF2142 Server Rules - Code of Conduct
Contact a Game Admin
"..good sportsmanship shouldn't be sacrificed in the name of teamwork. " --WhiskeySix
-
05-13-2008, 02:18 PM #15
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)



Reply With Quote












Bookmarks