Rob van der Woude's Scripting Pages

Help text for CheckVarsVBS.cs

(view help text of CheckVarsVBS.cs as plain text)

CheckVarsVBS.exe,  Version 1.02
Check VBScript code for unused variables and subroutines

Usage:    CheckVarsVBS.exe  "vbsfile"  [ /S | /V ]  [ /U ]  [ /W ]

Where:    "vbsfile"         is the VBScript or HTA file to be examined
          /S                tests Subroutines only
                            (default: subroutines as well as variables)
          /U                list Unused subroutines and variables only
                            (default: list all subroutines and variables)
          /V                tests Variables only
                            (default: subroutines as well as variables)
          /W                include Window_On* subroutines for HTAs
                            (default: ignore Window_On* subroutines in HTAs)

Notes:    When checking subroutines, the program will also check for
          improperly terminated and nested subroutines.
          For HTAs only, the following special subroutines are ignored
          (not listed in red, or not at all with /U switch) by default:
          Window_OnBeforeUnload, Window_OnBlur, Window_OnFocus,
          Window_OnHelp, Window_OnLoad, Window_OnResize, Window_OnUnload;
          use /W to treat them as ordinary subroutines.
          For HTAs only, unless checking for variables only (/V switch),
          this program will search the HTA's head for CSS style definitions,
          and check those for some common typos.
          The program's return code equals the number of unused subroutines
          and/or variables, or -1 in case of (command line) errors.

Written by Rob van der Woude

page last uploaded: 2018-02-15, 10:51