Windows logged-in user in batch file? - Microsoft Windows

This is a discussion on Windows logged-in user in batch file? - Microsoft Windows ; Is it possible to use the Windows logged-in user as a variable in a batch file?...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Windows logged-in user in batch file?

  1. Windows logged-in user in batch file?

    Is it possible to use the Windows logged-in user as a variable in a batch
    file?



  2. Re: Windows logged-in user in batch file?


    Use the environment variable %USERNAME%

    Neil wrote:
    >
    > Is it possible to use the Windows logged-in user as a variable in a batch
    > file?


    --
    Mike Walsh

+ Reply to Thread