Run MSCONFIG

G

Guest

Why is it I can run MSCONFIG from the "RUN" command, but not from a CMD
window. --- Mike
 
D

db

the answer is provided
if you try to run it......


Why is it I can run MSCONFIG from the "RUN" command, but not from a CMD
window. --- Mike
 
G

Guest

Interesting question, Mike.

When you try to run an application from the Run box, the Shell reads from
the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths so as
to determine if it is a "well-known" path. In this case, Msconfig.exe is
listed in that key and points to
"C:\WINDOWS\PCHealth\HelpCtr\Binaries\MSConfig.exe", so you can open the
tool from the Run box.

If you type "Msconfig.exe" in CMD, Windows searches for the file only in the
folders listed in your %Path% environment variable. As the Msconfig path is
not included in the "Path" variable by default, you get a "'Msconfig' is not
recognized as an internal or external command..." error message.

In Windows Vista you can run Msconfig.exe from the command prompt because it
is now included in C:\Windows\System32\.
 
M

Mark

Because msconfig.exe is not in the default PATH.

Use cmd.exe and enter:

C:\WINDOWS\pchealth\helpctr\binaries\msconfig.exe

to run MSCONFIG.

To see all the paths in PATH, enter:

echo %PATH%

in the Command Prompt window. You'll notice that the above cited path
does not exist in the PATH.
 
D

db

hello mike,

the other responders provided
an intelligent perspective on the
way i ignorantly viewed your question.

a couple ways to work around the
problem you have, that is if it is a
problem for you would be to either:

copy those executiable files from
thier parent folders into your user folder

or

you can modify your "user" path by
adding to what is already indicated with:

; c:\WINDOWS\pchealth\helpctr\binaries;

i think the above will also let you
run calc, notepad, etc., via cmd

- db
"db" <databaseben.discussions.microsoft.com> wrote in message the answer is provided
if you try to run it......


Why is it I can run MSCONFIG from the "RUN" command, but not from a CMD
window. --- Mike
 
R

Ramesh, MS-MVP

In addition:

And, if the App Paths entry for msconfig.exe is missing, the shell searches the folders mentioned in the PATH environment variable for files named "msconfig". IIRC, App Paths is given preference in SP1 and higher.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Interesting question, Mike.

When you try to run an application from the Run box, the Shell reads from
the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths so as
to determine if it is a "well-known" path. In this case, Msconfig.exe is
listed in that key and points to
"C:\WINDOWS\PCHealth\HelpCtr\Binaries\MSConfig.exe", so you can open the
tool from the Run box.

If you type "Msconfig.exe" in CMD, Windows searches for the file only in the
folders listed in your %Path% environment variable. As the Msconfig path is
not included in the "Path" variable by default, you get a "'Msconfig' is not
recognized as an internal or external command..." error message.

In Windows Vista you can run Msconfig.exe from the command prompt because it
is now included in C:\Windows\System32\.
 
R

Ramesh, MS-MVP

And an additional tip which I read on Raymond's blog:

Using the "start" command-line does ShellExecute (which reads App Paths first):

Open a Command Prompt window and type:

start msconfig

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com



And, if the App Paths entry for msconfig.exe is missing, the shell searches the folders mentioned in the PATH environment variable for files named "msconfig". IIRC, App Paths is given preference in SP1 and higher.
 
R

Ramesh, MS-MVP

Just realized that when using "start" from Command Prompt, the PATH is searched first, and "App Paths" is read last.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Great tip.
 
W

Wesley Vogel

Nicht gefunden Or in English, Not found.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
D

Detlev Dreyer

Ramesh said:
Doesn't work here too, Detlev. Tried both the links.

Ramesh, here's a small DivX video clip showing that the automatic
URL conversion still works (IE7 screen capture for example):

http://www.freewebs.com/detdreyer/download/test.avi

The movie (576KB) shows the automatic URL conversion from
http://groups.google.com/[email protected]
to
http://groups.google.com/group/microsoft.public.windowsxp.general/msg/c86c6857d844c54a

We should clarify that issue since posting links to the Google archive
containing the MID was working free of any problems over many years.
 
R

Ramesh, MS-MVP

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top