Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Username from Batch file 1

Status
Not open for further replies.

BIGALINWALES

IS-IT--Management
Feb 5, 2002
98
GB
Hi,

Is it possilbe to get a batch file to return a value with the name of the currently logged in user?

Thanks

Alex
 
yes. %username% will return the currently logged in user
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top