Computer Hope

Microsoft => Microsoft Windows => Windows Vista and 7 => Topic started by: marvinengland on May 17, 2010, 11:32:33 PM

Title: Default CMD PATH?
Post by: marvinengland on May 17, 2010, 11:32:33 PM
Default CMD PATH?

PATH=C:\Program Files\Windows Resource Kits\Tools\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\GnuWin32\bin
Title: Re: Default CMD PATH?
Post by: marvinengland on May 18, 2010, 07:37:04 AM
Default CMD PATH?

PATH=C:\Program Files\Windows Resource Kits\Tools\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\GnuWin32\bin

hello world
Title: Re: Default CMD PATH?
Post by: Spoiler on May 18, 2010, 08:56:36 AM
What do you want to know?

Every machine has differant stuff in the path because of the software installed.

Title: Re: Default CMD PATH?
Post by: marvinengland on May 18, 2010, 11:23:32 AM
What do you want to know?


When win 7 was installed there was a default path.

I can change the path:

path=%path%;c:\bin

But the default path returns when we exit and then return to the command prompt.

There is another method but I cannot get it to work?



[recovering disk space - old attachment deleted by admin]
Title: Re: Default CMD PATH?
Post by: Salmon Trout on May 18, 2010, 11:31:09 AM
What do you want to know?

Every machine has differant stuff in the path because of the software installed.



The thread title says it all.

The default Windows 7 PATH is

Code: [Select]
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShel l\v1.0\
For most people this will be

Code: [Select]
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
Title: Re: Default CMD PATH?
Post by: Salmon Trout on May 18, 2010, 11:32:34 AM

There is another method but I cannot get it to work?


Describe why it won't work