Advertisement
| 09.26.2008 at 08:31AM PDT, ID: 23766384 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: |
Dim ArrReadLine()
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
Set objFSO = CreateObject("Scripting.FileSystemObject")
txtin = "c:\listComputers.txt"
txtOut1 = "c:\W2k3.txt"
txtOut2 = "c:\XP.txt"
txtOut3 = "c:\others.txt"
Set objFileOut1 = nothing
Set objFileOut2 = nothing
Set objFileOut3 = nothing
Set objTextFile = objFSO.OpenTextFile _
(txtin, ForReading)
i=1
Do Until objTextFile.AtEndOfLine
Redim Preserve ArrReadLine(i)
ArrReadLine(i) = objTextFile.Readline
i= i +1
Loop
objTextFile.close
For i = 1 to Ubound(ArrReadLine)
arrSplitLine = Split(ArrReadLine(i) , "=")
n=0
If ArrReadLine(i) <> "" Then
Select Case arrSplitLine(n)
Case "Windows Server 2003" Set objFileOut1 = objFSO.OpenTextFile(txtOut1,8,True)
objFileOut1.WriteLine arrSplitLine(n+1)
objFileOut1.Close
Case "Windows XP Professional" Set objFileOut2 = objFSO.OpenTextFile(txtOut2,8,True)
objFileOut2.WriteLine arrSplitLine(n+1)
objFileOut2.Close
Case Else Set objFileOut3 = objFSO.OpenTextFile(txtOut3,8,True)
objFileOut3.WriteLine arrSplitLine(n+1) & " " & arrSplitLine(n)
objFileOut3.Close
End Select
'On Error Resume Next
'Err.Clear
End IF
Next
MsgBox "Done*****"
|
Advertisement