Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\Users\instrument\Desktop>SETLOCAL
- C:\Users\instrument\Desktop>SET MEDIASERVER_HOST=192.168.0.253
- C:\Users\instrument\Desktop>SET MEDIASERVER_USER=instrument
- C:\Users\instrument\Desktop>SET MEDIASERVER_PW=instrument
- C:\Users\instrument\Desktop>SET WMIC=wmic /user:instrument /password:instrument /node:"192.168.0.253"
- 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 ) )
- C:\Users\instrument\Desktop>(IF [
- ] == [Path] (SET MEDIASERVER_DIR= ) )
- C:\Users\instrument\Desktop>(IF [
- ] == [Path] (SET MEDIASERVER_DIR= ) )
- C:\Users\instrument\Desktop>(IF [Path] == [Path] (SET MEDIASERVER_DIR=C:\Program Files (x86)\Rohde-Schwarz\MediaServer\2.0.0
- ) )
- C:\Users\instrument\Desktop>(IF [
- ] == [Path] (SET MEDIASERVER_DIR= ) )
- C:\Users\instrument\Desktop>(IF [
- ] == [Path] (SET MEDIASERVER_DIR= ) )
- C:\Users\instrument\Desktop>(IF [
- ] == [Path] (SET MEDIASERVER_DIR= ) )
- C:\Users\instrument\Desktop>wmic /user:instrument /password:instrument /node:"192.168.0.253" process where "name like '%MediaServer%'" CALL TERMINATE
- Executing (\\SMC-INSTRUMENT\ROOT\CIMV2:Win32_Process.Handle="6552")->TERMINATE()
- Method execution successful.
- Out Parameters:
- instance of __PARAMETERS
- {
- ReturnValue = 0;
- };
- C:\Users\instrument\Desktop>wmic /user:instrument /password:instrument /node:"192.168.0.253" PROCESS WHERE "NAME LIKE 'gst-launch%.exe'" CALL TERMINATE
- No Instance(s) Available.
- C:\Users\instrument\Desktop>wmic /user:instrument /password:instrument /node:"192.168.0.253" PROCESS WHERE "NAME LIKE 'ffplay%.exe'" CALL TERMINATE
- No Instance(s) Available.
- 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"
- Executing (Win32_Process)->Create()
- Method execution successful.
- Out Parameters:
- instance of __PARAMETERS
- {
- ProcessId = 4544;
- ReturnValue = 0;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement