Need Product Name

(imported topic written by hbkrules6991)

Hi all…first post.

I am using the anlalysis below to tell me what version of backup software is installed on a server.

(if (exists file (it & “\Program Files\OmniBack\bin\OmniInet.exe”)) then product nam of file (it & “\Program Files\OmniBack\bin\OmniInet.exe”) as string else (if exists file (it & “\Program Files\VERITAS\NetBackup\bin\bpinetd.exe”) then version of file (it & “\Program Files\VERITAS\NetBackup\bin\bpinetd.exe”) as string else (“NA”))) of (names of drives whose (type of it = “DRIVE_FIXED”))

The problem is I have no way of knowing which application it is since it only give the version. Is it possible to also tell the Product Name of the .exe file as well?

If this is the incorrect way to do so, please post the proper analysis…

thanks in advance…

(imported comment written by arnaud91)

hi hbkrules69,

not sure i well understood your question : do you need the analysis to report both product name and version of the .exe file ?

If yes, this could help you :

(

if (exists file (it & 
"\Program Files\OmniBack\bin\OmniInet.exe")) then (key 
"name" of it & 
":" & version of it as string) of file (it & 
"\Program Files\OmniBack\bin\OmniInet.exe") 

else (

if exists file (it & 
"\Program Files\VERITAS\NetBackup\bin\bpinetd.exe") then (key 
"name" of it & 
":" & version of it as string) of file (it & 
"\Program Files\VERITAS\NetBackup\bin\bpinetd.exe") 

else (
"NA"))) of (names of drives whose (type of it = 
"DRIVE_FIXED"))

Arnaud.