Hi,
Use Environ$("Username")... this should give the Username, but may also return a little bit of extra text, ie: USERNAME=xxxx instead of just xxxx, so you will have to test it out on your environment, either way with a function set up to handle the extra text you should be flying fairly quickly.
ie:
if left(environ$("USERNAME"),9) = "USERNAME=" then
right(environ$("USERNAME"), len(environ$("USERNAME")-9)
else
environ$("USERNAME")
end if
Hope it helps.
Lee
|