Script Using Current User

Whats The Code For Telling A Computer To Select A Current Loged In Username. I Tried Using %user% But It Doesn’t Work. Im Writting A Script And It Works With My Username But If A Friend Of Mine For Instance Tries To Run The Script It Doesn’t Work Because The Script Looks For My Username.

%u%? Not in windows so I’m not sure.

i’m not sure either, but maybe it’s: %Current_User% or %current_user%, dunno

ok, i now know its: %USERNAME%

or you may want: %USERPROFILE%



Source

THANK YOU DONKEY. Ur The Man Or Should I Say… THEE DONKEY:) THANKS!!

your welcome, glad to be helpful :beer: