Script to Monitor number of directories (not files)

Version 1

    The sample script returns 1 if the number of directories within a specified path is
    greater than the number of specified within the command. 
    If the difference is less than or equal to the specified number, the script will return a 0.

    Sample Monitor Settings
    -----------------------
    For the following example, we will assume the following:
        Path: \\WebSrv1\dirs\
        Maximum directories allowed: 300
        Script Location: c:\ipmscripts\

    For Windows 2000
      Executable Name: cscript.exe
      Directory: c:\winnt\system32\
      Command Line Parameters: dircount.vbs \\WebSrv1\dirs\ 300
      Startup Directory: c:\ipmscripts\
     
      Compare the Process Return Value = SELECTED
      Expected Return Value: 0
     
    For Windows XP / 2003
      Executable Name: cscript.exe
      Directory: c:\windows\system32\
      Command Line Parameters: dircount.vbs \\WebSrv1\dirs\ 300
      Startup Directory: c:\ipmscripts\
     
      Compare the Process Return Value = SELECTED
      Expected Return Value: 0

    The sample script is not supported under any SolarWinds support program. The
    sample scripts are provided AS IS without warranty of any kind.