Multiple Pathnames and associated file versions

(imported topic written by chenbr91)

So… im writing and analysis that needs to get the syncfusion.grid.base.dll file if it exists in the c:\program files\syncfusion path. Also, if there are multiple files named “syncfusion.grid.base.dll” i need to get them all, with their paths and versions… the problem with my below analysis is that if multiple files exist, i get the error. “Error: Singular expression refers to non-unique object.”. I know that i need to do something like version(s) and pathname(s), to account for the existence of the syncfusion.grid.base.dll file in multiple places… but im having a brain fart and cant think now… HELP!!! :slight_smile:

if exists folder “C:\Program Files\Syncfusion” then if (exists pathname of ((descendants of folder “C:\Program Files\Syncfusion”) whose (name of it as lowercase = “syncfusion.grid.base.dll” ))) then (pathname of ((descendants of folder “C:\Program Files\Syncfusion”) whose (name of it as lowercase = “syncfusion.grid.base.dll”)) & " | " & version of ((descendants of folder “C:\Program Files\Syncfusion”) whose (name of it as lowercase = “syncfusion.grid.base.dll”))as string) else “<N/A>” else “Path Does Not Exist”

Thanks!

Brian

(imported comment written by chenbr91)

Got it… hehe… nevermind…

if exists folder “C:\Program Files\Syncfusion” then if (exists pathname of ((descendants of folder “C:\Program Files\Syncfusion”) whose (name of it as lowercase = “syncfusion.grid.base.dll” ))) then (pathname of it & " | " & version of it as string) of (descendants of folder “C:\Program Files\Syncfusion”) whose (name of it as lowercase = “syncfusion.grid.base.dll”) else “<N/A>” else “Path Does Not Exist”