Get domain\username via script in notes client

in the notes client I have a form and I want to automatically fill in 2 fields on the form when it’s composed. I don’t see anything in the registry that captures these values (I would think HKLU would) but I know I can get them froma dos prompt as below

userDomain = %userdomain%

userName = %username%

Anyone know of a way to get these using script?

Subject: get domain\username via script in notes client

In script, I have shelled out out to a .cmd file and echo it to a text file, from there, you can read the text file via script.

Subject: RE: get domain\username via script in notes client

I’ll give that a shot.