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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logon ID in Windows NT

Status
Not open for further replies.

GreenFella

Programmer
Oct 23, 2001
41
CA
I am attempting to automate copying a shortcut onto a person's desktop when they sign on to a Windows NT workstation and run a batch file.

However, since I do not have Admin authority I cannot copy the shortcut to the Winnt\Profiles\All Users\Desktop folder. I need to copy it to the Winnt\Profiles\user\Desktop foler where user is the Logon Id of the current user.

My question is, what is the system variable that I need to take the place of "user" in that batch statement.

Any help would be appreciated.

TIA
Greenfella
 
Try using %USERNAME%. For a list of other things like computer name variable, server etc, go to the DOS prompt and type set.

Rgds
 
Thanks very much thatrenowned. I think that is going to do the trick.

Greenfella
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top