Powershell console tell host its still alive -
I'm searching with the hole HDD GCI-Rackers and after that I'm working with the result ... me What is to be done, the console tells me still alive? Such as GCI C: \ -Respector Blella .... every 2-minute host "still searching"
edit:
$ file = get -childItem $ Path -Record -Interaction Siliconalty | Where {$ _. PsIsContainer -q $ incorrect- and $ _ CreationTime -le "$ OldDate"} | Select - Property Name, Full Name | Writing-progress-activism "searching ..." -statas "please wait ..." -the smallest integer ???
There are a lot of files and folders in the $ path, this task will take a few days to complete, how can I calculate percent complete? If I use counting, then will count all the things first?! It can also be fine, if it counting like a file:
if ($ countfiles -ge "10000") {Write - Host "is still working, current In $ _ "} and {$ Countfiles = $ countfiles + 1}
Will write the status message and write the hair item below the nearby pipeline - the host can be changed which is what you really want to do with the hair items
get-childitem -recurse | % {Writing-progress-status $ _- activation "travel ..."; $ _} | % {Write-host $ _}
Comments
Post a Comment