Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to search for a file verison on all computers.

Status
Not open for further replies.

rgudino

Technical User
Jan 29, 2004
12
US
Hi,
I'm a newbie in vbscript. I'm trying to create a script to look for files in system32. I want it to seach all computers on my network get file version for .dll files and extract that to access database.

I would like to also put that into html. lets say i create a text box and command button. I type the file in the text area and hit submit. I would like for it to find what ever file or files verison that I type in the textarea. On my web form and put the results in report.

Can someone give me example or the script please, I don't know where to start. Thank you
 
if you have access to c$ as an admin account then just use the FileSystemObject

For Each aComputer In arrComputers
If FSO.FileExists("\\" & aComputer & "\c$\win\system32\filex.txt") Then
'we have found it

Else
'we havent found it

End If
Next
 
The following script will give you what you were asking for and show you the actual file version information.


Set objFSO = CreateObject("Scripting.FileSystemObject")
Wscript.Echo objFSO.GetFileVersion("c:\windows\system32\scrrun.dll")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top