Problems about PATH variable under Microsoft account

wxiong

New Member
Messages
3
Hi everyone,

I'm now running the windows 8 64 bit OS, and logged by a Microsoft account.

Now I am doing some work using Visual Studio and encouter some problems about the PATH variable.

1. Under current Microsoft account, I cannot see the full PATH variable neither in CMD or the Environment Variables dialog, the figures below shows the current view:
environment variables dialog.png
This is my current PATH
environment variables dialog.png
and, of course, I set it under system variables.

Well, this path works fine in command line executing, but in visual studio, it doesn't work.

2. So, lets see what I have in visual studio (run as administrator):

Code:
System.Environment.GetEnvironmentVariable("path");
"C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\110\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\110\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\110\\Tools\\Binn\\ManagementStudio\\;C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\PrivateAssemblies\\;C:\\Program Files (x86)\\Microsoft SQL Server\\110\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft ASP.NET\\ASP.NET Web Pages\\v1.0\\;C:\\Program Files (x86)\\Windows Kits\\8.0\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft\\Web Platform Installer\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files (x86)\\VisualSVN\\bin;"

If you're willing to look at the text above, you'll find that this "PATH" is totally different with the one we set in Environment Variables dialog or get from the CMD.

I want to use some executable files in "d:\common\bin" with my web application hosted by IIS8, but I found that the web application could not find the executable files in "d:\common\bin", which should exist in "PATH"

Well, though I can just put the executable files into system32, but I just want to find why there exist such a problem and how to fix it. Thank you all!
 

My Computer

System One

  • OS
    windows 8

My Computer

System One

  • OS
    Windows 8.0 x64
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satelite C55D-A Laptop
    CPU
    AMD EI 1200
    Memory
    4 gb DDR3
    Graphics Card(s)
    Raedon 340 MB dedicated Ram
    Monitor(s) Displays
    Built in
    Screen Resolution
    1366 x 768
    Hard Drives
    640 GB (spinner) Sata II
    Keyboard
    Built in
    Mouse
    Touch pad
See if this page has any bearing on it:
Setting the Path and Environment Variables for Command-Line Builds

also I don't think I had any path variable in my user settings either. I just clicked Add button under user settings and added PATH and made the value %path%;add_paths_for_user_here
Thanks for reply.
But I cannot find the answer to my problem on the url you provided. That page introduce how to setup path for visual studio's C/C++ toolkit. But I am now searching for a way to setup the path for process run with built-in account (for example, IIS_NET blabla), with which I can use the executables with my web applications hosted by IIS8
 

My Computer

System One

  • OS
    windows 8
See if this page has any bearing on it:
Setting the Path and Environment Variables for Command-Line Builds

also I don't think I had any path variable in my user settings either. I just clicked Add button under user settings and added PATH and made the value %path%;add_paths_for_user_here
Thanks for reply.
But I cannot find the answer to my problem on the url you provided. That page introduce how to setup path for visual studio's C/C++ toolkit. But I am now searching for a way to setup the path for process run with built-in account (for example, IIS_NET blabla), with which I can use the executables with my web applications hosted by IIS8

So you can or cannot append the path variable in the System settings?
 

My Computer

System One

  • OS
    Windows 8.0 x64
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satelite C55D-A Laptop
    CPU
    AMD EI 1200
    Memory
    4 gb DDR3
    Graphics Card(s)
    Raedon 340 MB dedicated Ram
    Monitor(s) Displays
    Built in
    Screen Resolution
    1366 x 768
    Hard Drives
    640 GB (spinner) Sata II
    Keyboard
    Built in
    Mouse
    Touch pad
See if this page has any bearing on it:
Setting the Path and Environment Variables for Command-Line Builds

also I don't think I had any path variable in my user settings either. I just clicked Add button under user settings and added PATH and made the value %path%;add_paths_for_user_here
Thanks for reply.
But I cannot find the answer to my problem on the url you provided. That page introduce how to setup path for visual studio's C/C++ toolkit. But I am now searching for a way to setup the path for process run with built-in account (for example, IIS_NET blabla), with which I can use the executables with my web applications hosted by IIS8

So you can or cannot append the path variable in the System settings?
I can't.

After searching on the Google's related result, I found that the MS account login session use a different path with local account.
 

My Computer

System One

  • OS
    windows 8
I use MS login and the path variables I appeneded are shown in command prompt. I have 8.0. Both normail and Admin command prompt show my variables.
 

My Computer

System One

  • OS
    Windows 8.0 x64
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satelite C55D-A Laptop
    CPU
    AMD EI 1200
    Memory
    4 gb DDR3
    Graphics Card(s)
    Raedon 340 MB dedicated Ram
    Monitor(s) Displays
    Built in
    Screen Resolution
    1366 x 768
    Hard Drives
    640 GB (spinner) Sata II
    Keyboard
    Built in
    Mouse
    Touch pad
Back
Top