Advertisement
Guest User

batch_output

a guest
May 30th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. C:\Users\instrument\Desktop>SETLOCAL
  3.  
  4. C:\Users\instrument\Desktop>SET MEDIASERVER_HOST=192.168.0.253
  5.  
  6. C:\Users\instrument\Desktop>SET MEDIASERVER_USER=instrument
  7.  
  8. C:\Users\instrument\Desktop>SET MEDIASERVER_PW=instrument
  9.  
  10. C:\Users\instrument\Desktop>SET WMIC=wmic /user:instrument /password:instrument /node:"192.168.0.253"  
  11.  
  12. C:\Users\instrument\Desktop>FOR /F "tokens=1,2* usebackq delims==" %A IN (`wmic /user:instrument /password:instrument /node:"192.168.0.253" SHARE WHERE "Name like '%MediaServer%'" GET Path /value`) DO (IF [%A] == [Path] (SET MEDIASERVER_DIR=%B ) )
  13.  
  14. C:\Users\instrument\Desktop>(IF [
  15. ] == [Path] (SET MEDIASERVER_DIR= ) )
  16.  
  17. C:\Users\instrument\Desktop>(IF [
  18. ] == [Path] (SET MEDIASERVER_DIR= ) )
  19.  
  20. C:\Users\instrument\Desktop>(IF [Path] == [Path] (SET MEDIASERVER_DIR=C:\Program Files (x86)\Rohde-Schwarz\MediaServer\2.0.0
  21.  ) )
  22.  
  23. C:\Users\instrument\Desktop>(IF [
  24. ] == [Path] (SET MEDIASERVER_DIR= ) )
  25.  
  26. C:\Users\instrument\Desktop>(IF [
  27. ] == [Path] (SET MEDIASERVER_DIR= ) )
  28.  
  29. C:\Users\instrument\Desktop>(IF [
  30. ] == [Path] (SET MEDIASERVER_DIR= ) )
  31.  
  32. C:\Users\instrument\Desktop>wmic /user:instrument /password:instrument /node:"192.168.0.253"  process where "name like '%MediaServer%'" CALL TERMINATE
  33. Executing (\\SMC-INSTRUMENT\ROOT\CIMV2:Win32_Process.Handle="6552")->TERMINATE()
  34.  
  35. Method execution successful.
  36.  
  37. Out Parameters:
  38. instance of __PARAMETERS
  39. {
  40.     ReturnValue = 0;
  41. };
  42.  
  43. C:\Users\instrument\Desktop>wmic /user:instrument /password:instrument /node:"192.168.0.253"  PROCESS WHERE "NAME LIKE 'gst-launch%.exe'" CALL TERMINATE
  44. No Instance(s) Available.
  45.  
  46.  
  47. C:\Users\instrument\Desktop>wmic /user:instrument /password:instrument /node:"192.168.0.253"  PROCESS WHERE "NAME LIKE 'ffplay%.exe'" CALL TERMINATE
  48. No Instance(s) Available.
  49.  
  50.  
  51. C:\Users\instrument\Desktop>wmic /user:instrument /password:instrument /node:"192.168.0.253"   process CALL CREATE "C:\Program Files (x86)\Rohde-Schwarz\MediaServer\2.0.0\MediaServerGUI.exe","C:\Program Files (x86)\Rohde-Schwarz\MediaServer\2.0.0\PQA"
  52. Executing (Win32_Process)->Create()
  53.  
  54. Method execution successful.
  55.  
  56. Out Parameters:
  57. instance of __PARAMETERS
  58. {
  59.     ProcessId = 4544;
  60.     ReturnValue = 0;
  61. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement