Script Using Current User

Discussion in 'Web Design & Programming' started by X slash X, Mar 2, 2008.

  1. X slash X

    X slash X Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    %u%? Not in windows so I'm not sure.
     
  3. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    i'm not sure either, but maybe it's: %Current_User% or %current_user%, dunno
     
  4. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    ok, i now know its: %USERNAME%

    or you may want: %USERPROFILE%

    [​IMG]

    Source
     
  5. X slash X

    X slash X Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    THANK YOU DONKEY. Ur The Man Or Should I Say.... THEE DONKEY:) THANKS!!
     
  6. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    your welcome, glad to be helpful :beer:
     

Share This Page