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.01
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:    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.
          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: 2017-03-25, 21:31