I would like my app. to work under various windows OS. : 98SE, 2000. XP, VISTA and now 7.

Depending upon the OS of the host machine, the location of files (especially dependency files) may need to be varied.

Is there a routine whereby a VB program can interrogate the machine for it's OS and return a value which defines it? Given that value, the VB program can then be written so as to adapt to the OS in use, for file location and so forth.

camoore

Wales, UK