Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

To know what the programs does

$
0
0

Get-Process notepad |
Where-Object {
$time = (New-TimeSpan $_.StartTime (Get-Date)).TotalSeconds;
($time -lt 180)
} |
ForEach-Object {
“Stop process $($_.id) after $time seconds…”;
$_.Kill()
}

please explain what “;” does and explain about the varible they assigned, please explain about what they have assigned to the varialbe, the above program which i got from a book i very complicated to me, can you pleas explain it.


Viewing all articles
Browse latest Browse all 13067

Trending Articles