Hello Everyone,
Does anyone know of utility that will
return Windows 2000 login user name.
Thanks for your comments.
Dave Berkovsky
Dave,
Yep, I've got some code to do that. I had your email address somewhaer, but I seem to have lost it. Please email me and I'll send it off to you.
Regards,
Jonathan Bird
jonathan@psi.net.nz
The Win2000 username is often set up in the environment, and can be read from there, using an AREV function to return the DOS environment.
Just in case the USERNAME= environment variable isn't set in your environment, here's an AREV function that performs a 32-bit call to derive the current Windows username by calling the Windows API.
AREV does 32-bit Windows processing. We like the idea!
World Leaders in all things RevSoft
Thanks guys.