I am having a problem with a statements:
Const HKEY_LOCAL_MACHINE = &H80000002
Const ForReading = 1
Dim shell
Set shell = CreateObject("WScript.shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile("U:\Scripts\EPO\Inputfile.txt",
ForReading)
Do Until objTextFile.AtEndOfStream
strComputer = objTextFile.Readline
Path = ("\\"& strComputer & "\C$\Program Files\Network Associates\Common
Framework\FrameworkService.exe")
Path1 = ("\\"& strComputer & "\c$\program files\McAfee\Common
Framework\FrameworkService.exe")
If path = "" Then
WScript.Echo strComputer & ":" & " EPO File Version is " &
objFSO.GetFileVersion (Path)
ElseIf path1 = "" Then
WScript.Echo strComputer & ":" & " EPO File Version is " &
objFSO.GetFileVersion (Path1)
Else
WScript.Echo strComputer & ":" & " EPO is not installed"
End If
Loop
objTextFile.Close
When I run the script on my machine it goes to the last line even if I have
a path on my machine. Maybe I am just confused