????????Σ??????????WSH?????δ??????????е?????????????£?

????dim objdir

????set??bjdir=wscr??pt.createobject("scr??pting.filesystemobject")

????for k=1 to10

????anewfolder="c:/chapter"& k

????objdir.createfolder(anewfolder)

????next

???????????? .vbs?????????????к?????????C?????????????????????????С?

   ?????????????????????á??????????????????????????? IIS????????' definea constant for stopped services

????ConstADS_SERVICE_STOPPED = 1

' get an ADSI object for a computer

????Set??bjComputer =GetObject("WinNT://MYCOMPUTER??computer")

' get an object for a service

????Set??bjService =objComputer.GetObject("Service"??"MYSERVICE")

' check to see if the service is stopped

????If(objService.Status = ADS_SERVICE_STOPPED) Then

' if the service is stopped?? then start it

????objService.Start

????End If

?????? startsvc.vbs????????? C: ??????????????????????У?Cscr??pt C:/STARTSVC.VBS?????к?????????? IIS ????????????????

??????? Windows?? samples???£??и? WSH????У????????в??????????? .vbs??. js????????

???????? WSH???????????д??????????????????????Ч???

8.?? EXCEL?е?????????в???

datatable.AddSheet("51sheet")

datatable.ImportSheet"f:/test.xls"??"testsheet"??"51sheet"

Dim i??RowCount '????????????

i=0

RowCount=datatable.GetSheet("51sheet").GetRowCount'???? RowCount???? 51sheet?е???????

msgbox RowCount

Do while i<rowcount

i=i+1 '????ν??????????????? i=1

'datatable.getsheet("51sheet").setcurrentrow(i)  ??仰????????????????д????????????????????д??

datatable.getsheet("51sheet")

datatable.setcurrentrow(i)

'??й?????????? CurrentRow?????С?

tempData=DataTable.GetSheet("51sheet").GetParameter("Name").Value            

'???????????? msgbox??????????????÷????????????????????????е???????????????

'??????????е?????

msgbox"GetParameter-Name:"&tempData '??????????????????

'???????????????????????????

msgbox"GetParameter-i:"&DataTable.GetSheet("51sheet").GetParameter(1).Value'????????GetParameter(1)???? sheet?е???е????

loop

9.???? dtGlobalsheet?? dtLocalsheet

1) dtGlobalsheet???????????? index???????????????? index???????? 1?????????????????? 1000??

??????? 1???? 1000?????????????????????????????? dtGlobalsheet???????????????????? sheet?? Name???? "Global"????? SheetName???????Сд???

2) dtLocalsheet?????? index:1001??????????????????? 2?????á??????????????? sheet????????? index:3?????????

????????????????????????????? index???

3) datatable????????????????????? sheet??????????????????? excel??????á?

dtsheet????????е???? sheet??????????? MI??????????Щ?????????????????У???????ж?? action???磺 actiion1??actiion2??actiion3