objconnection = createcomobject("ADODB.Connection")
objconnection~connectionstring = "provider=msidxs;"
oprop = objconnection~properties()
oprop~"Data Source" = "Script Catalog"
objconnection~open()
objcommand = createcomobject("ADODB.Command")
strquery = "Select Filename from Scope()"
objrecordset = objconnection~execute(strquery)
DO WHILE objrecordset~eof() = 0
SAY objrecordset~filename
objrecordset~movenext()
END
|