Re: Win32Lib getUserName() problem
- Posted by jimcbrown (admin) Dec 18, 2009
- 1230 views
Mike777 said...
I know this is not the preferred way of dealing with it, but maybe you can pipe the output from a SET command to a text file (or memory) and interrogate the lines until you find "USERNAME=".
If that would have worked, so would have getenv("USERNAME").
I am wondering if he simply needs to log out and then log back in to see the updated username. I'm also wondering if its really the username being queried here (i.e. jsmith472 or Compaq_Owner) or a Full Name/Real Name field (i.e. "John Smith" or "Compaq Owner").