Rem: Checking a WSH Script’s Syntax Without Running the Script
You can easily perform a quick syntax check by inserting one simple command at the top of your WSH script.
Bob Wells
February 10, 2003
1 Min Read
I have many long Windows Script Host (WSH) scripts in which I'd like to check the syntax without actually running the scripts. Are you aware of any tools designed for this purpose?
This answer is compliments of the Windows Script Host Development Team at Microsoft. You can easily perform a quick syntax check by inserting WScript.Quit at the top of your script. If a script includes the Option Explicit statement, put WScript.Quit after that statement. The script engine will perform a syntax check, then quit.
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like