Christopher Sin
New member
How to make a batch file that closes Diablo II when it minimizes, to save your life!
I lost my lv. 87 Necro in the Cow level, when Trillian decided to minimize my game. So I decided to make a solution for this problem, so it doesn't destroy another one of my characters.
I created a .bat file which terminates the Game.exe process, shutting down Diablo 2. I put a shortcut to this file in my Quick Launch tray. If the game ever gets minimized, I can click the shortcut to kill the game before it kills my character.
To do this, create a new text file. Inside this text file, paste the following:
Then save the text file and rename it to whatever you want, and change the end extension to .bat (for example, my file is called killdiablo.bat). I would place the batch file in your Diablo 2 directory, then create a shortcut and place it on your desktop or your Quick Launch tray. Whenever your game gets minimized, you can click this shortcut and the game will terminate almost instantly.
The above batch file might only work for Windows XP. I don't know much about coding batch files, so if there's a better or more compatible way to code this, please let me know!
The life of my lv.82 necro was recently saved by this. Diablo II minimized right after I ran into a pack of gloams at the Worldstone 2 waypoint. Without this batch, I would have been dead for sure! :scared:
I lost my lv. 87 Necro in the Cow level, when Trillian decided to minimize my game. So I decided to make a solution for this problem, so it doesn't destroy another one of my characters.

I created a .bat file which terminates the Game.exe process, shutting down Diablo 2. I put a shortcut to this file in my Quick Launch tray. If the game ever gets minimized, I can click the shortcut to kill the game before it kills my character.
To do this, create a new text file. Inside this text file, paste the following:
Code:
@echo off
TASKKILL /F /IM Game.exe /T
Then save the text file and rename it to whatever you want, and change the end extension to .bat (for example, my file is called killdiablo.bat). I would place the batch file in your Diablo 2 directory, then create a shortcut and place it on your desktop or your Quick Launch tray. Whenever your game gets minimized, you can click this shortcut and the game will terminate almost instantly.
The above batch file might only work for Windows XP. I don't know much about coding batch files, so if there's a better or more compatible way to code this, please let me know!

The life of my lv.82 necro was recently saved by this. Diablo II minimized right after I ran into a pack of gloams at the Worldstone 2 waypoint. Without this batch, I would have been dead for sure! :scared: