To know what the programs does

Welcome Forums General PowerShell Q&A To know what the programs does

This topic contains 1 reply, has 2 voices, and was last updated by

5 years, 3 months ago.

  • Author
  • #8829

    Points: 0
    Rank: Member

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

    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.

  • #8833

    Points: 1,619
    Helping HandTeam Member
    Rank: Community Hero

    ; doesn't really do anything. It's a command separator, but it's unnecessary here.

    I don't understand what you mean by "explain about the variable they assigned." Maybe we can start with one question at a time?

The topic ‘To know what the programs does’ is closed to new replies.