>Thanks for the suggestion Ken. Unfortunately, when run in FoxPro 2.6, both the ID() and sys(0) functions return the machine name in the following form: "9JHP4 # 255". In VFP, both of the functions return the name in this form: "9JHP4 #VALIDNAME". It seems the 16 bit version returns only the machine number.
For NT Workstation Try:
set default to c:\winnt\system (or wherever your windows system folder is located)
! net config workstation >c:\netuser.txt then parse the file low level. I believe the user will be the second line in the output file.
For Windows 95/98 I'm not sure look at the net command switches by opening a dos session and typing net /? in the windows subdirectory.
John Harvey
Shelbynet.com
"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright