Hi all,
I'm putting together a script that will tell me whether a PC loggin in has Trend AV installed. If it soes, I would also like to find out what virus pattern. The pattern file always looks like: lpt$vpn.157

The extension, like 157 above determines the pattern level. If a PC was on pattern 160, the file would be called lpt$vpn.160

So, I know I can search for the file using

IF EXIST($PATH + "\lpt$vpn.*) etc

but how do I return just the extension that it finds? Also, how would I deal with situations when it finds more than one?

Thanks!!
1. How can I search for the file by