Systems Variables 
Author Message
 Systems Variables

Records stored in one of my databases contain the user name and computer
name
taken from system variables:

idrec![UserName] = Environ$("Username")
idrec![Computer] = Environ$("ComputerName")

Are there system variables for workgroup and domain as well?

David Macias



Wed, 20 Jul 2005 00:40:43 GMT  
 Systems Variables
Type SET at a command prompt to see the system
variables that are available on your system. On Win2K
or Win XP you would expect to see USERDOMAIN
if there is a domain.  If there is a domain, there wouldn't
be a workgroup, would there?  Assuming you mean a
network workgroup, rather than an Access Workgroup.

There won't be an environ variable for an Access
Workgroup unless you create one.  You could get
the value from the registry, or from the Access Application
object.

(david)


Quote:
> Records stored in one of my databases contain the user name and computer
> name
> taken from system variables:

> idrec![UserName] = Environ$("Username")
> idrec![Computer] = Environ$("ComputerName")

> Are there system variables for workgroup and domain as well?

> David Macias



Fri, 22 Jul 2005 13:06:58 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Adding Environmental Variable to System Variables thru VB

2. system variables for directories

3. System variables in VBScript

4. System Variables-Windows

5. retrieving system variables

6. System variables?

7. outputting a system variable?? (NT)

8. environment (system) variables

9. VB: how to create a file link, read system variables, etc

10. system variables for mouse cursor position?

11. How do I get at TEMP system variable??

12. System Variables

 

 
Powered by phpBB® Forum Software