Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. REM Display text file in shell
  2. type config.json
  3.  
  4. REM Show running processes
  5. tasklist
  6.  
  7. REM Kill process bei PID
  8. taskkill /pid 1060
  9.  
  10. REM Get Command Line and PID of one process
  11. wmic process where caption="test.exe" get commandline,processid
  12.  
  13. REM Kill process by Command Line
  14. wmic process Where "CommandLine Like '%-jar selenium-server.jar%'" Call Terminate
  15.  
  16. REM Open RDP session with username + password
  17. cmdkey /generic:"hostnameXY" /user:"peter" /pass:"123"
  18. mstsc /v:hostnameXY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement