I am no batch file expert, but I think you could use the IF fuction to test if [National Instruments]/LabVIEW x.y/LabVIEW.exe exists for increasing values of x.y to test for each version of LabVIEW. When you stop finding higher levels of LabVIEW, you know you have found the newest version of LabVIEW installed. Obviously, this may not be the most efficient method for determining LabVIEW versions and it may have issues down the road if the LabVIEW installation hierarchy changes.
While I have your attention, you may look further into batch file possiblities
here and
here.
Hope this helps,
Spex
National Instruments
To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be has a 2x safety factor...