[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== Extracting NT user name (AREV Specific) ====
=== At 01 FEB 1999 01:14:03AM Nerissa wrote: ===
{{tag>"AREV Specific"}}
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.
[url=http://www.ozemail.com.au/~stsm/util7.zip]http://www.ozemail.com.au/~stsm/util7.zip[/url]
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.
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=822FCF96AC070D7B8525670B00223F14|View this thread on the forum...]]