Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Enterprise
Expertise: Beginner
Aug 27, 2001

Get User Name, Domain Name, Temp, and System Folder Without an API


Use Environ var. This Works Only on Windows NT and 2000.
 
Me.Label1 = "Temp Dir - " & Environ$("temp")
      Me.Label2 = "Sys Dir - " & Environ$("windir") &
IIf(Len(Environ$("OS")), "\SYSTEM32", "\SYSTEM")
      Me.Label5 = "User Domain: " & Environ$("USERDOMAIN")
      Me.Label6 = "User Name: " & Environ$("USERNAME")
Michael Goligorsky
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date