tag:blogger.com,1999:blog-2776726104235630005.post5031497399269996873..comments2023-09-09T01:18:28.875-07:00Comments on Life in University Information Technology: Powershell Progress Bar with Time CountdownMBhttp://www.blogger.com/profile/14651890523678387870noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-2776726104235630005.post-78584840852932435952013-06-12T10:50:00.676-07:002013-06-12T10:50:00.676-07:00###===========================
### Pause Program f...###===========================<br />### Pause Program for 15 min<br />### - Matt Brown, 2008<br />###===========================<br />$x = 3*60<br />$length = $x / 100<br />$MinText = "minutes"<br />while($x -gt 0) {<br /> $min = [int](([string]($x/60)).split('.')[0])<br /> if ($min -eq "1"){$MinText = "minute"}<br /> <br /> if ($min -eq "0") {<Anonymoushttps://www.blogger.com/profile/17163630096940108849noreply@blogger.comtag:blogger.com,1999:blog-2776726104235630005.post-7288232370302493742013-02-07T08:51:07.311-08:002013-02-07T08:51:07.311-08:00I like this. I used it to show a timer while waiti...I like this. I used it to show a timer while waiting for some files to finish processing. I changed it to recycle a new bar if there were still files pending. Here's my code:<br /><br />$numfiles=(Get-ChildItem T:\DVRMS_to_Process).count<br />"There are $numfiles files to process"<br />$tmr=56*$numfiles<br />$length = $tmr / 100<br />while((Test-Path T:\DVRMS_to_Process\*) -eq $trueAnonymoushttps://www.blogger.com/profile/08586742730929360243noreply@blogger.com