suntsu
Programmer
- Aug 26, 2001
- 72
Hi all,
Hoping that someone can point me in the right direction?
I need to check the file version of a specific file on all of our PCs (that are online at that time); c:\windows\system32\msgina.dll and generate a text file of the results
Does anybody know of an app that could automate my searching?
I know the logic of what I'm trying to do (albeit in a batch file & the actual code doesn't work but represents the logic).
Here's what I've gotten so far...
FOR %i%=1 to 200
REM CHECK FOR LIVE CONNECTION
SET CONNECTED=YES
PING LAPTOP%i% | FIND "TTL=" > NUL
IF ERRORLEVEL 1 NEXT (can't find that PC try next)
ELSE
NET USE Z: \\LAPTOP%i%\windows\system32
z:
(code help) Write computer name >> Laptops.txt
dir msgina.dll >> c:\temp\HotFix\Laptops.txt (this will give the file size which will be sufficient)
NET DISCONNECT Z: (disconnect the mapped drive)
NEXT (Loop to next laptop number)
END
Can anyone help with an app or utility that would do the job, or tips for using vbscript?
Cheers,
David
Hoping that someone can point me in the right direction?
I need to check the file version of a specific file on all of our PCs (that are online at that time); c:\windows\system32\msgina.dll and generate a text file of the results
Does anybody know of an app that could automate my searching?
I know the logic of what I'm trying to do (albeit in a batch file & the actual code doesn't work but represents the logic).
Here's what I've gotten so far...
FOR %i%=1 to 200
REM CHECK FOR LIVE CONNECTION
SET CONNECTED=YES
PING LAPTOP%i% | FIND "TTL=" > NUL
IF ERRORLEVEL 1 NEXT (can't find that PC try next)
ELSE
NET USE Z: \\LAPTOP%i%\windows\system32
z:
(code help) Write computer name >> Laptops.txt
dir msgina.dll >> c:\temp\HotFix\Laptops.txt (this will give the file size which will be sufficient)
NET DISCONNECT Z: (disconnect the mapped drive)
NEXT (Loop to next laptop number)
END
Can anyone help with an app or utility that would do the job, or tips for using vbscript?
Cheers,
David