Path seems weird or corrupted (or something)


  1. Posts : 259
    Windows 10
       #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 Computer


  2. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #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 Computers


  3. Posts : 259
    Windows 10
    Thread Starter
       #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 Computer


  4. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #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 Computers


  5. Posts : 259
    Windows 10
    Thread Starter
       #5

    Ztruker said:
    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 Computer


  6. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #6

    Check path under User variables?
      My Computers


  7. Posts : 3,502
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.3
       #7

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


 

  Related Discussions
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 18:15.
Find Us




Windows 10 Forums