mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-15 12:34:25 +01:00
Update open-dashboards.ps1
This commit is contained in:
parent
3b50516e17
commit
e5f593eba4
@ -16,13 +16,13 @@ try {
|
|||||||
Write-Host "⏳ (1/2) Loading Data/popular-dashboards.csv..."
|
Write-Host "⏳ (1/2) Loading Data/popular-dashboards.csv..."
|
||||||
$Table = Import-CSV "$PSScriptRoot/../Data/popular-dashboards.csv"
|
$Table = Import-CSV "$PSScriptRoot/../Data/popular-dashboards.csv"
|
||||||
$NumRows = $Table.Length
|
$NumRows = $Table.Length
|
||||||
Write-Host "⏳ (2/2) Launching Web browser with dashboards: " -noNewLine
|
Write-Host "⏳ (2/2) Launching Web browser with dashboards... " -noNewLine
|
||||||
foreach($Row in $Table) {
|
foreach($Row in $Table) {
|
||||||
$Name = $Row.NAME
|
$Name = $Row.NAME
|
||||||
$URL = $Row.URL
|
$URL = $Row.URL
|
||||||
Write-Host "$Name · " -noNewline
|
Write-Host "$Name · " -noNewline
|
||||||
& "$PSScriptRoot/open-default-browser.ps1" "$URL"
|
& "$PSScriptRoot/open-default-browser.ps1" "$URL"
|
||||||
Start-Sleep -milliseconds 100
|
Start-Sleep -milliseconds 50
|
||||||
}
|
}
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||||
|
Loading…
Reference in New Issue
Block a user