Location:
State:
Carrier
Country
Status

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:Windowssystem32;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.

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:WindowsSystem32Wbem; C:WindowsSystem32WindowsPowerShellv1.0; C:Program FilesooRexx; D:X2; D:X2Macros; d:	ools; d:unixtools; c:
exxprogs; C:Program Files (x86)NVIDIA CorporationPhysXCommon; C:WINDOWSsystem32; C:WINDOWS; C:WINDOWSSystem32Wbem; C:WINDOWSSystem32WindowsPowerShellv1.0;C:Users
rkurtzAppDataLocalMicrosoftWindowsApps;

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.

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:Windowssystem32; C:Windows; C:WindowsSystem32Wbem; C:WindowsSystem32WindowsPowerShellv1.0; C:Program FilesooRexx; D:X2; D:X2Macros; d:	ools; d:unixtools; c:
exxprogs; C:Program Files (x86)NVIDIA CorporationPhysXCommon; C:Users
rkurtzAppDataLocalMicrosoftWindowsApps;

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:Windowssystem32; C:Windows; C:WindowsSystem32Wbem; C:WindowsSystem32WindowsPowerShellv1.0; C:Program FilesooRexx; D:X2; D:X2Macros; d:	ools; d:unixtools; c:
exxprogs; C:Program Files (x86)NVIDIA CorporationPhysXCommon; C:Users
rkurtzAppDataLocalMicrosoftWindowsApps;

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.

Check path under User variables?

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

Path seems weird or corrupted (or something)