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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i know if the system is windows 2000 or windows NT through code

Status
Not open for further replies.

pujas

Programmer
Feb 2, 2005
22
0
0
US
Hi,
i need to access the system32 and system folder in windows nt and 2000.

the path can be c:\windows\system32 or c:\winnt\system32.

I wanted to know if there is any env var that will help me either get windows or winnt depending on OS.

like i know for getting the username i used environ("username") . Is there any env var for the above.

if not how do i check in my code for a 2000 or a nt machine

Thanks
 
see strongm's post thread222-563286



Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top