"Stuart" <> wrote in message
news:5486528d-4053-4c3e-9230-...
> Do you happen to know of a good website for vbs beginners?
As a beginner you would benefit greatly if you studied an code example that
did more or less what you want. The code I gave you right at the start of
this thread would have been an excellent example - it came within 99% of
your requirements. It seems you were reluctant to take up this learning
opportunity, so here is the code. If you want to find out more about VB
Scripting, check the questions and responses in
microsoft.public.scripting.vbscript. This will be a harder path to follow
because you will have to sift through many posts before you find something
that relates to whatever problem you happen to have at hand.
sServerList = "d:\temp\Servers.txt"
sOutputList = "d:\temp\Daylight.txt"
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oServerList = oFSO.OpenTextFile(sServerList)
Set oOutputFile = oFSO.CreateTextFile(sOutputList)
While Not oServerList.AtEndOfStream
ProcessServer(oServerList.ReadLine)
Wend
oOutputFile.Close
oServerList.Close
Sub ProcessServer (sServer)
Set objWMIService = GetObject("winmgmts:\\" & sServer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_TimeZone")
For Each objItem In colItems
oOutputFile.WriteLine "Daylight Day - " & objItem.DaylightDay _
& " Daylight Day of Week - " & objItem.DaylightDayOfWeek _
& " Daylight Month - " & objItem.DaylightMonth
Next
End Sub