PDA

View Full Version : Variables


MMG
05-27-2001, 08:24 AM
%CurrentUser% would be a useful variable

Mark
05-29-2001, 11:07 AM
Hi MMG,

You are right this could be a very useful built-in variable. By Current User you mean the Username of the currently logged in user, correct?
I know that on Windows 2000 this information can be found here in the registry: HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\Logon User Name

mark.

MMG
06-01-2001, 04:24 AM
You can also find it at:

HKLM\software\microsoft\windowsnt\current value\winlogon\defaultuser\name for NT3.51

or.....

HKLM\networ\logon\username
for IE4 based systems

or.....
HKLM\system\current controlset\control\current user
for IE5 based systems

Therefore I'm sure that a %currentUser% variable would be simpler!