"echo %username%" results in the typical XP/2K/etc... expected output here 
under 7.

On 3/4/2010 12:29 PM, Thane Sherrington 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