VBscript syntax check
Posted on 2005-03-04
Is it possile to do a syntax check on a VBscripts ".vbs". I want to be able to check for syntax errors before actaually executing the script.
I know that scripts don't get compiled, so how would you check for syntax problems? I guess you need some sort of an interpreter?
I don't want to use the script debugger, becuase it will execute the script, right?. Even though you have the option of stepping through and putting break points....etc, the script will execute.
Before intsalling the script (which does office automation), I want to make sure that it doesn't crash because there is an "If" that does not have and "end if" as an example.
Don't worry I am exeperimenting with an offline machine, so I can not potentially cause damage!!
Sounds simple, but I am a newbie to scripting.