The username comes from what is entered when you login not the actual username

Sent from my iPhone

On Mar 4, 2010, at 3:29 PM, Thane Sherrington <th...@computerconnectionltd.com > wrote:

I have a little batch file that uses %username% to do some stuff. That works fine in Windows XP and Vista, but in 7, it becomes username-PC$ - so if the username is Fred, %username% is Fred in XP and Fred-PC$ in 7. Of course, that breaks the batch file. Am I doing something wrong or did MS really change this?

T


Reply via email to