Windows 10: Path seems weird or corrupted (or something)

  1.    03 Sep 2016 #1

    Path seems weird or corrupted (or something)


    In the CLI, typing echo %path% >path.txt gets me a 3,709 long character file. In the file, about 3/4 down the path is repeated: PATH=C:\Windows\system32;C:\Windows; (literally) and it goes on. If I delete everything fro "Path=, etc. the path is 2,709 long.

    Now, if I go to Control Panel->System->Advanced Settings and edit the path, I get an editor like dialog box in which some (but far from all) paths are each on their own line. 22 of them. But many are not there. Is there another way to edit the path? I think with many versions of Sql Server and VS, each with their own path settings, the path gets way too large.
      My ComputerSystem Spec


  2. Posts : 5,007
    Windows 10 Pro X64 15063.138
       03 Sep 2016 #2

    I checked mine and the duplicates are all %systemroot%\ (the ones in red below) instead of C:\Windows\ so I end up with

    Code:
    C:\Windows;
    C:\Windows\System32\Wbem;
    C:\Windows\System32\WindowsPowerShell\v1.0\;
    C:\Program Files\ooRexx;
    D:\X2;
    D:\X2\Macros;
    d:\tools;
    d:\unixtools;
    c:\rexxprogs;
    C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
    C:\WINDOWS\system32;
    C:\WINDOWS;
    C:\WINDOWS\System32\Wbem;
    C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
    C:\Users\rrkurtz\AppData\Local\Microsoft\WindowsApps;
      My ComputersSystem Spec

  3.    03 Sep 2016 #3

    The same for me, but how do I edit the path now? Only 22 appear in that dialog box. And why when I %echo% path>path.txt I get the text "Path C:\etc." in the middle of the file. That seems like something is corrupted. My path has 62 entries yet only 22 show up in that editor.
      My ComputerSystem Spec


  4. Posts : 5,007
    Windows 10 Pro X64 15063.138
       04 Sep 2016 #4

    When you do the echo %path%, the variables in the defined path are substituted before display so you don't see any %systemroot% entries. I deleted the duplicates yesterday via Control Panel->System->Advanced Settings and edit and they did not come back today when I booted my PC.

    Code:
    C:\Windows\system32;
    C:\Windows;
    C:\Windows\System32\Wbem;
    C:\Windows\System32\WindowsPowerShell\v1.0\;
    C:\Program Files\ooRexx;
    D:\X2;
    D:\X2\Macros;
    d:\tools;
    d:\unixtools;
    c:\rexxprogs;
    C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
    C:\Users\rrkurtz\AppData\Local\Microsoft\WindowsApps;
      My ComputersSystem Spec

  5.    05 Sep 2016 #5

    Ztruker said: View Post
    When you do the echo %path%, the variables in the defined path are substituted before display so you don't see any %systemroot% entries. I deleted the duplicates yesterday via Control Panel->System->Advanced Settings and edit and they did not come back today when I booted my PC.

    Code:
    C:\Windows\system32;
    C:\Windows;
    C:\Windows\System32\Wbem;
    C:\Windows\System32\WindowsPowerShell\v1.0\;
    C:\Program Files\ooRexx;
    D:\X2;
    D:\X2\Macros;
    d:\tools;
    d:\unixtools;
    c:\rexxprogs;
    C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
    C:\Users\rrkurtz\AppData\Local\Microsoft\WindowsApps;

    In my edit window, there are just 22 entries and many entries seem to be missing. For instance Skype and GNU, both on the path (from C:\path >path.txt, for instance), along with MySql, Perl, and many other applications. Why are they not in this edit window? Most of what's in the path variable are not in this window, so...confused, still.
      My ComputerSystem Spec


  6. Posts : 5,007
    Windows 10 Pro X64 15063.138
       06 Sep 2016 #6

    Check path under User variables?
      My ComputersSystem Spec


  7. Posts : 3,506
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.3
       07 Sep 2016 #7

    If you attach the output from echo %path% I'll take a look at it.
      My ComputerSystem Spec


 

Related Threads
Ok last week my PC ran into several major problems that left me restarting it till it reinstalled itself. It seemed to be fine, all the problems seemed to be gone, however they're more or less back and I'm thinking it's the hardware. -In the...
I need advice on which path to take. in Performance & Maintenance
Recently I screwed up my system and am backing up all of my partitions before I do anything and following any advice. I was playing around with PhoenixOS. After installing it to the HDD, I discovered that it added a dual boot, which I don't want....
Solved What is the path to the store in Software and Apps
I am customizing the tile icons for my start menu using TileCreator. I would like to set a custom tile for the windows store however I cannot figure out what the path to the windows store is in order to do so. Google has failed me in this pursuit :(
username path error in User Accounts and Family Safety
So when I installed the OS I had no problem configuring the username and stuff like that, but when I started installing programs I notice that one letter of the username is off (instead of users/dorian it's users/doria). It's not a big problem, but...
I just purchased a new windows 8.1 laptop. I need to upgrade to a Pro version. my previous laptop was 7 pro. As I would rather not have to learn two new operating systems (have not worked with either 8 or 10 yet) - I thought I would get to 10 pro...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 10:16.
Find Us