At 05:14 PM 3/4/2010, JRS wrote:
When you run "set" from the command prompt, what does it show as the user?

It was showing Fred-PC$.  After recreating the user, it works.  Weird.

T


 --
JRS
[email protected]


Facts do not cease to exist just
because they are ignored.



----- Original Message ----
> From: Thane Sherrington <[email protected]>
> To: [email protected]
> Sent: Thu, March 4, 2010 12:42:50 PM
> Subject: Re: [H] Windows 7 environment variables
>
> At 04:29 PM 3/4/2010, 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?
>
> Interesting. Just checked on another 7 machine (this one 7 Ultimate instead of > 7 Home Premium) and it shows the variable normally. Now I'm really confused.
>
> T


Reply via email to