Permalink
Browse files

Display ' *** No Data ***' if no command results to display

  • Loading branch information...
1 parent 0f3a810 commit e5fd78c487de9314658a12e2037960849f48c552 @ShareTheCodez committed Mar 10, 2012
Showing with 13 additions and 2 deletions.
  1. +13 −2 MonitorCommand.ps1
View
15 MonitorCommand.ps1
@@ -92,16 +92,27 @@ else
Clear-Host
DisplayMonitorHeaderInfo
- }
+ }
+ #else
+ #{
+ #Write-Host " *** No Data ***"
+ #}
}
#Start-Sleep $RefreshSeconds
Clear-Host
DisplayMonitorHeaderInfo
}
else
{
-
+ if ($Monitor_Display -ne $null)
+ {
$Monitor_Display
+ }
+ else
+ {
+ Write-Host " *** No Data ***"
+ }
+
Start-Sleep $RefreshSeconds
Clear-Host
DisplayMonitorHeaderInfo

0 comments on commit e5fd78c

Please sign in to comment.