PS C:\> notepad PS C:\> |
PS C:\> $process = Start-Process -FilePath notepad -PassThru PS C:\> $process.Id 5936 PS C:\> 'You just launched process {0}.' -f $process.Id You just launched process 5936. PS C:\> 'CPU consumption in seconds so far: {0}.' -f $process.CPU CPU consumption in seconds so far: 0.1092007. PS C:\> $process.CloseMainWindow() True PS C:\> |
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |