How to determine logged on user in Windows XP?

What's the easiest way to determine the logged on user in Windows XP (without loading any support tools)? I'm looking for something similar to the 'whoami' command but for Windows. I need something that'll display the domain and username.


Solution 1:

Nevermind, I figured it out. Open a command prompt and type the following:

echo %userdomain%
echo %username%

Solution 2:

Just type the following into command line:

echo %USERNAME%