Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows XP / Customization / November 2007

Tip: Looking for answers? Try searching our database.

Start, Run vs. Command Prompt

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Swifty - 01 Nov 2007 08:12 GMT
"Start", "Run…", "conf" opens NetMeeting

Typing "conf" in the Command Prompt just says that "conf" is not known.

So, how does "Run" know where to look?
See: http://www.swiftys.org.uk/HowDoesItKnow.html

Signature

Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Nepatsfan - 01 Nov 2007 21:54 GMT
> "Start", "Run…", "conf" opens NetMeeting
>
[quoted text clipped - 3 lines]
> So, how does "Run" know where to look?
> See: http://www.swiftys.org.uk/HowDoesItKnow.html

I'm not sure there's a question here, but if there is, here's
an answer.

As long as there is a subkey for the program under this
registry key, it can be launched from the Run box.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths

I believe the Command Prompt relies on entries in the Path
Environmental Variable. Enter Path in a command prompt window
to see what those entries are.

Good luck

Nepatsfan
Ramesh, MS-MVP - 02 Nov 2007 16:02 GMT
From http://msdn2.microsoft.com/en-us/library/bb776871.aspx

<excerpt>

Application Registration

When the ShellExecute function is provided with the name of an executable file in its lpFile parameter, there are several places that it can look in an attempt to find the file, including the following:

The current working directory
The Windows directory (no subdirectories are searched)
The Windows\System32 directory
Directories listed in the PATH environment variable
The App Paths registry key

The order that those locations are searched varies, though the App Paths key is preferred in Windows XP Service Pack 1 (SP1). The keys found under App Paths are used primarily for the following two purposes.

</excerpt>

Signature

Regards,

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

"Start", "Run…", "conf" opens NetMeeting

Typing "conf" in the Command Prompt just says that "conf" is not known.

So, how does "Run" know where to look?
See: http://www.swiftys.org.uk/HowDoesItKnow.html

Signature

Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Ramesh, MS-MVP - 02 Nov 2007 16:05 GMT
Additionally, typing "start conf.exe" from Command Prompt should work also. The "Start" command-line uses the shellexecute.
Signature

Regards,

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

From http://msdn2.microsoft.com/en-us/library/bb776871.aspx

<excerpt>

Application Registration

When the ShellExecute function is provided with the name of an executable file in its lpFile parameter, there are several places that it can look in an attempt to find the file, including the following:

The current working directory
The Windows directory (no subdirectories are searched)
The Windows\System32 directory
Directories listed in the PATH environment variable
The App Paths registry key

The order that those locations are searched varies, though the App Paths key is preferred in Windows XP Service Pack 1 (SP1). The keys found under App Paths are used primarily for the following two purposes.

</excerpt>

Signature

Regards,

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

"Swifty" <Steve.J.Swift@gmail.com> wrote in message news:%23ngbIaFHIHA.4196@TK2MSFTNGP04.phx.gbl...
"Start", "Run…", "conf" opens NetMeeting

Typing "conf" in the Command Prompt just says that "conf" is not known.

So, how does "Run" know where to look?
See: http://www.swiftys.org.uk/HowDoesItKnow.html

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Swifty - 17 Nov 2007 18:09 GMT
> Additionally, typing "start conf.exe" from Command Prompt should work
> also. The "Start" command-line uses the shellexecute.

Thanks, I hadn't come across "App Paths" before, and the "Start"
mechanism will work fine for me, as I always have a command window open.
In fact, I can get away with just "start conf", which saves me a few
keystrokes (I deduced this as I could click "Start" "Run..." and enter
just "conf").

Signature

Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Ramesh, MS-MVP - 18 Nov 2007 04:25 GMT
You're welcome Steve.

Signature

Regards,

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

Ramesh, MS-MVP wrote:
> Additionally, typing "start conf.exe" from Command Prompt should work
> also. The "Start" command-line uses the shellexecute.

Thanks, I hadn't come across "App Paths" before, and the "Start"
mechanism will work fine for me, as I always have a command window open.
In fact, I can get away with just "start conf", which saves me a few
keystrokes (I deduced this as I could click "Start" "Run..." and enter
just "conf").

Signature

Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.