Skip to content
This repository
Browse code

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

  • Loading branch information...
commit e5fd78c487de9314658a12e2037960849f48c552 1 parent 0f3a810
ShareTheCodez authored March 10, 2012

Showing 1 changed file with 13 additions and 2 deletions. Show diff stats Hide diff stats

  1. 15  MonitorCommand.ps1
15  MonitorCommand.ps1
@@ -92,7 +92,11 @@ else
92 92
 						Clear-Host
93 93
  						DisplayMonitorHeaderInfo
94 94
 
95  
-					}	
  95
+					}
  96
+					#else
  97
+					#{
  98
+						#Write-Host "  *** No Data ***"
  99
+					#}
96 100
 				}
97 101
 								#Start-Sleep $RefreshSeconds
98 102
 							 						Clear-Host
@@ -100,8 +104,15 @@ else
100 104
 			}
101 105
 			else
102 106
 			{
103  
-
  107
+				if ($Monitor_Display -ne $null)
  108
+				{
104 109
 				$Monitor_Display
  110
+				}
  111
+				else
  112
+				{
  113
+					Write-Host "  *** No Data ***"
  114
+				}
  115
+				
105 116
 				Start-Sleep $RefreshSeconds
106 117
 						Clear-Host
107 118
  						DisplayMonitorHeaderInfo

0 notes on commit e5fd78c

Please sign in to comment.
Something went wrong with that request. Please try again.