sol10-10.vbs

来自「Apress - Managing Enterprise Systems Wit」· VBS 代码 · 共 9 行

VBS
9
字号
'get a reference to the Win32Process class object on specified machine
Set objProcess=GetObject("winmgmts:{impersonationLevel=impersonate}!" & _
               "\\Odin\root\cimv2:Win32_Process" )
 
  'create process on remote machine
 nResult = objProcess.Create("notepad.exe", , ,nProcID)

 WScript.Echo "The PID for the new instance of notepad is " & nProcID

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?