Quantcast
Channel: Spiceworks Community - Latest topics
Viewing all articles
Browse latest Browse all 184372

Progress Bar not working

$
0
0
Text
$FilePath="$($DuplicateMenuformBox1.Text)" $FileLocation="$FilePath\*.txt" $FileLocation="$FilePath\*.txt" $domain=get-content "$($DuplicateMenuformBox1domain.Text)" $Files = Get-ChildItem $FileLocation #File location and target domains $mainBox1result.Text="`nCounting files located in folder $($FilePath): $($Files.Count)" # At this point you can loop through all the files and read the content $i++ [int]$pct = ($i/$($Files.count))*100 #update the progress bar $progressbar1.Minimum=0 $progressbar1.Maximum=100 $progressbar1.Value =$pct $DuplicateMenuform.Refresh() start-sleep -Milliseconds 10 foreach ($File in $Files) { $Content = Get-Content $File.FullName $DuplicateMenuformlabeldomainactivity.Text+="`nReading the Filename $($File.name.ToUpper()) content:$($Content.Count) user to be check" #Reading the Content of the file...

Viewing all articles
Browse latest Browse all 184372

Trending Articles



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