Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Windows 64bit (http://www.velocityreviews.com/forums/f46-windows-64bit.html)
-   -   %ProgramFiles% resolves to "C:\Program Files (x64)" for "Local System" user (http://www.velocityreviews.com/forums/t613740-programfiles-resolves-to-c-program-files-x64-for-local-system-user.html)

JH 04-30-2008 12:26 AM

%ProgramFiles% resolves to "C:\Program Files (x64)" for "Local System" user
 
%ProgramFiles% resolves to "C:\Program Files" as a normal user but
it resolves to "C:\Program Files (x64)" as the "Local System" user.

I wonder why this is happening?

I'm using "set" to display all the environment variables. I'm using
SysInternals's
PsExec to run cmd as Local System.



JH 04-30-2008 01:00 AM

Re: %ProgramFiles% resolves to "C:\Program Files (x64)" for "Local System" user
 
It seems that it's not a user issue. Instead it's the difference between 32
bit and 64 bit processes.
PsExec is a 32 bit app.

> %ProgramFiles% resolves to "C:\Program Files" as a normal user but
> it resolves to "C:\Program Files (x64)" as the "Local System" user.
>
> I wonder why this is happening?
>
> I'm using "set" to display all the environment variables. I'm using
> SysInternals's
> PsExec to run cmd as Local System.
>




Charlie Russel - MVP 04-30-2008 01:12 AM

Re: %ProgramFiles% resolves to "C:\Program Files (x64)" for "Local System" user
 
32-bit processes "see" the file system differently. I haven't used PsExec,
but if it's a 32-bit process, it's running the 32-bit version of cmd, so I'm
not surprised.

--
Charlie.
http://msmvps.com/blogs/xperts64
http://mvp.support.microsoft.com/profile/charlie.russel


"JH" <jh_ng@newsgroup.nospam> wrote in message
news:uJvmL2lqIHA.1316@TK2MSFTNGP06.phx.gbl...
> It seems that it's not a user issue. Instead it's the difference between
> 32 bit and 64 bit processes.
> PsExec is a 32 bit app.
>
>> %ProgramFiles% resolves to "C:\Program Files" as a normal user but
>> it resolves to "C:\Program Files (x64)" as the "Local System" user.
>>
>> I wonder why this is happening?
>>
>> I'm using "set" to display all the environment variables. I'm using
>> SysInternals's
>> PsExec to run cmd as Local System.
>>

>
>




All times are GMT. The time now is 02:37 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.