Basic While, Do.

Hey guys

Felling pretty dumb atm…

cannot seem to get this simple loop to work.

What i basically want to do is confirm first that both processes are running and then if that’s true, start another process.

So i thought it was this:

$Manager = get-process -Name pia_manager

$Nw = get-process -name pia_nw

while (!($Manager -or $Nw)) {

Write-Host “echo”

if ($Manager -and $Nw) {

}

}

Unfortunately, that was not the result 😀

submitted by /u/PRIdEVisions
[link] [comments]

Leave a Reply