' ]]> </script> </job> </package> Running the above script from a file with a ".WSF" extension, such as one named "EnumerateConstantsADO.wsf", will produce the result shown below: ADO Recordset Values for Constants *CursorTypeEnum Constants* -1 adOpenUnspecified 0 adOpenForwardOnly 1 adOpenKeyset 2 adOpenDynamic 3 adOpenStatic *LockTypeEnum Constants* -1 adLockUnspecified 1 adLockReadOnly 2 adLockPessimistic 3 adLockOptimistic 4 adLockBatchOptimistic In addition, using the object reference to expose the constants makes writing the script more like writing in a standard programming language. In fact, the contents of the sample script, written in VBScript, will actually compile into a Visual Basic program and run the same way as long as that program uses the same reference to ADODB. See also Active Scripting Shell script HTML Application Windows PowerShell External links Using Windows Script Files - From Microsoft's website Scripting Languages Available in the Script Center - From The WayBack Machine's archive of a page from Microsoft's website Windows administration