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

Environ Function 1

Status
Not open for further replies.

LonnieJohnson

Programmer
Apr 16, 2001
2,628
US
Does anyone know where I can get a list of Environ functoin variables?

The only one I know is Environ$("UserName")

Thanks.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
In a command window, type SET.
Or in VBA:
i = 1
While Environ(i) <> ""
Debug.Print Environ(i)
i = i + 1
WEnd

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I forgot to say thanks when I gave you the star. Thanks a mil.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Hi all

I have looked at the code above as i am trying to find the OS.

I want for find what operating system users are on , I have made a test app and when i run on my XP machine using Environ("OS") i get Windows_NT and the 2000 is the same. Can you use this to find the os ?

Thanks

C
 
You may consider something like this:
MsgBox CreateObject("Excel.Application").OperatingSystem

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top