Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to tell if the PC is running Vista or XP

Status
Not open for further replies.

Greyfleck

IS-IT--Management
Jun 2, 2008
61
GB
I am running some tests which work fine on XP but poop themselves in Vista. Is there a way I can tell which operating system I am working on within the code so I can stop duplication ...
Thanks
 
While not expressly mentioning Vista in it this FAQ may be of some help faq222-4599

Hope this helps

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Thanks HQ - I will see if I can get Vista from it too and report back.
I tried using = Environ("OS")but got windows_NT back for both!
 
Thanks RoyVidar. There are always answers on this forum - it is just formulating the correct question thats the hard part.!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top