Jump to content
Compatible Support Forums
Sign in to follow this  
teenguy

Username

Recommended Posts

I need to be able to instruct a computer novice how to determine their username, i.e. the name replacing

"Administrator" in C:\Documents and Settings\Administrator. What is the simplest way to do this.

Share this post


Link to post

open a dos window and type:

 

echo %username%

 

This will show you who you are logged in as. It will be the name of the sub directory in Documents and Settings. At last check Win2k Professional doesn't have a whoami command. Cygwin does but that requires you to have Cygwin installed, or at least some other unix shell in Windows.

 

HTH

 

/Lee

Share this post


Link to post

Or you can get "Whoami.exe" from here, which is a link off of the main "Free Tools" page over here. As for me, I use %username% all the time as mentioned before.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×