Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1009617 // windows_killProcesses

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3588L/25K).

static void windows_killProcesses(Collection<Int> pids) {
  assertWindows();
  if (empty(pids)) ret;
  LS pids2 = allToString(pids);
  S s = joinWithSpaces(addPrefixToAll("/PID ", pids2));
  print("Killing processes: " + s);
  print(backtick("taskkill " + s));
}

Author comment

Began life as a copy of #1009586

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009617
Snippet name: windows_killProcesses
Eternal ID of this version: #1009617/6
Text MD5: 3e4321d950b102a263d86e9fc42146da
Transpilation MD5: 2c8d1d224b78d3caa58d913f4be79701
Author: stefan
Category: javax / unix
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-08 23:03:05
Source code size: 269 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 472 / 578
Version history: 5 change(s)
Referenced in: [show references]