Difference between revisions of "Kill all processes running from the game server's root folder"

(Created page with "This Windows batch script kills all running processes located in the game server's root directory. set exelocation=%ThisService_RootDirectory% wmic path win32_process where...")
 
Line 4: Line 4:
  
  
This Windows batch script kills a specific process located in the game server's root directory.  
+
This Windows batch script kills a specific process located in the game server's root directory and sub directories.  
 
  set executable=%ThisService_RootDirectory%CustomExe.exe
 
  set executable=%ThisService_RootDirectory%CustomExe.exe
 
  wmic path win32_process where "ExecutablePath like '%executable:\=\\%'" call terminate
 
  wmic path win32_process where "ExecutablePath like '%executable:\=\\%'" call terminate

Revision as of 13:42, 4 February 2020

This Windows batch script kills all running processes located in the game server's root directory.

set exelocation=%ThisService_RootDirectory%
wmic path win32_process where "ExecutablePath like '%exelocation:\=\\%%'" call terminate


This Windows batch script kills a specific process located in the game server's root directory and sub directories.

set executable=%ThisService_RootDirectory%CustomExe.exe
wmic path win32_process where "ExecutablePath like '%executable:\=\\%'" call terminate
Retrieved from "https://help.tcadmin.com/index.php?title=Kill_all_processes_running_from_the_game_server%27s_root_folder&oldid=1956"