I would like one of my login scripts to map a drive letter only if a
particular .exe file is a particular version.

(A database is on the server and the drive letter maps to its
location...but I only want the drive mapping to occur if the correct
version of the client's executable file is on the C: drive).

Any suggestions?