Web Scripts
1) Count all opened Browsers on desktop, Capture Browser names and
export to an Excel file
Dim oBrowser, Browsers, TotBrowsers, i,r
Set objExcel=CreateObject("Excel.
Set myFile=objExcel.Workbooks.Open ("C:\Documents and
Settings\Administrator\
Set mySheet=myFile.Worksheets("
r=1
mysheet.Cells(r,"C")="Browser Names"
Set oBrowser=Description.Create
oBrowser("micclass").value="
Set Browsers=Desktop.ChildObjects(
TotBrowsers=Browsers.Count
Msgbox TotBrowsers
For i= 0 to TotBrowsers-1 Step 1
r=r+1
myBrowser=Browsers(i).
mysheet.Cells(r,"C")=myBrowser
Browsers(i).Close
Next
myFile.Save
objExcel.Quit
Set objExcel=Nothing
0 comments:
Post a Comment