Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

PowerShell Progress bar

$
0
0

How can I add a progress bar to the following script.  I'm trying to install all exe's in a directory.  I would like it to say installing 1 of 3 and % complete.  This is what I have. 

$folder = "c:\myfolder"
gci $folder *.exe | foreach {
    Start-Process $_.FullName -ArgumentList "/q /norestart" -wait -passthru
        }

Thanks


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>