Complete VBScript Reference. The MsgBox function can return one of the following values: 1 = vbOK - OK was clicked; VBScript basics. VBScript The output will be . To use VBScript from an external file source, you need to write your all VBScript source code in a simple text file with extension ".vbs" and then include that file as shown above. Windows Installer Scripting Examples. Download this text file and rename it to SAPI_Speak.vbs. Win32-LogicalDisk - WMI VBScript sample. For example: CScript //Nologo DoUpdate.vbs /nr.