Advertisement
| 10.09.2008 at 10:38AM PDT, ID: 23801746 |
|
[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: 47: 48: 49: 50: 51: 52: |
strComputer = "10.xx.x.xxx"
strOutputFile = "./" & Split(WScript.ScriptName, ".")(0) & "_" & Hour(Now) & "_" & Minute(Now) & ".txt"
Set objFileSystem = CreateObject("Scripting.fileSystemObject")
Set objOutputFile = objFileSystem.CreateTextFile(strOutputFile, TRUE)
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colFileList = objWMIService.ExecQuery _
("ASSOCIATORS OF {Win32_Directory.Name='C:\Windows\System32'} Where " _
& "ResultClass = CIM_DataFile")
strmsg = "File_Name" & vbTAB & "File_Type" & vbTAB & "File_Size" & vbTAB & "File_Version" & vbTAB & _
"Manufacturer" & vbTAB & "Readable_Attr" & vbTAB & "Writeable_Attr" & vbTAB & "Hidden_Attr" & vbTAB & _
"System_Attr" & vbTAB & "Archive_Attr" & vbTAB & "Encrypted_Attr" & vbTAB & "Compressed_Attr" & vbTAB & _
"Created_Date" & vbTAB & "Installed_Date" & vbTAB & "Last_Accessed" & vbTAB & "Last_Modified"
objOutputFile.WriteLine (strmsg)
strmsg = ""
'I=0
For Each objFile In colFileList
If (objFile.Extension = "dll" or objFile.Extension = "exe") Then
strmsg=""
strmsg = strmsg &objfile.name
strmsg = strmsg & vbTAB & objfile.filetype
strmsg = strmsg & vbTAB & objfile.filesize
strmsg = strmsg & vbTAB & objfile.version
strmsg = strmsg & vbTAB & objfile.manufacturer
strmsg = strmsg & vbTAB & objfile.readable
strmsg = strmsg & vbTAB & objfile.writeable
strmsg = strmsg & vbTAB & objfile.hidden
strmsg = strmsg & vbTAB & objfile.system
strmsg = strmsg & vbTAB & objfile.archive
strmsg = strmsg & vbTAB & objfile.encrypted
strmsg = strmsg & vbTAB & objfile.compressed
strmsg = strmsg & vbTAB & mid(objfile.CreationDate,5,2) & "/" &_
mid(objfile.CreationDate,7,2) & "/" & mid(objfile.CreationDate,1,4)
strmsg = strmsg & vbTAB & mid(objfile.InstallDate,5,2) & "/" &_
mid(objfile.InstallDate,7,2) & "/" & mid(objfile.InstallDate,1,4)
strmsg = strmsg & vbTAB & mid(objfile.LastAccessed,5,2) & "/" &_
mid(objfile.LastAccessed,7,2) & "/" & mid(objfile.LastAccessed,1,4)
strmsg = strmsg & vbTAB & mid(objfile.LastModified,5,2) & "/" &_
mid(objfile.LastModified,7,2) & "/" & mid(objfile.LastModified,1,4)
objOutputFile.WriteLine ( strmsg)
End If
Next
objOutputFile.Close
Set objFileSystem = Nothing
msgbox "done"
|
Advertisement