Extracting NT user name (AREV Specific)
At 01 FEB 1999 01:14:03AM Nerissa wrote:
Is there a routine available that can be called from AREV that will return the NT login ID of the user?
At 01 FEB 1999 04:56AM Steve Smith wrote:
Check the DOS environment settings to see if there's a username set there, then use a function to get the DOS environment.
http://www.ozemail.com.au/~stsm/util7.zip
Steve
At 01 FEB 1999 08:43AM Matt Sorrell wrote:
Nerissa,
If I remember correctly, I saw a post on here once that indicated the user name was a part of the station ID for stations logging in under Windows NT. I believe it was Andrew McCauley that mentioned that, but I can't remember for sure.
Matt Sorrell
msorrell@movgal.com
At 01 FEB 1999 02:55PM Jonathan Bird (jb@psiltd.co.nz) wrote:
I have a routine to do that, and also return the operating system (NT w/s or Win 95). E-mail me.
Jonathan Bird
jb@psiltd.co.nz
At 02 FEB 1999 08:13PM Warren wrote:
create a bat file that contains:
@echo %username% ] username.txt
then do an osread/dos read of username.txt
you can get fancy and change username.txt to a parameter such %1% that gets passed to the bat file. Easiest is to redirect the echo output to c:\username.txt.