|
View Full Version : Run dialog vs. cmd.exe
Does anyone know if the Run dialog is set to look in paths to interpret commands beyond what is defined in %PATH%? The reason I ask is that I can launch Word or Excel by entering "winword" or "excel" in the Run dialog, but this does not hold true at the command prompt, since my Office path is not part of my %PATH% variable. So, it seems that the Run dialog must look at %PATH% and then also look either in other paths or at a list of other defined words, such as winword or excel. If this is the case, does anyone know where this list of words or the additional paths are stored?
Thank you,
-- Ray at work Microsoft ASP MVP
|
"Ray at <%=sLocation%> [MVP]" wrote in message news:Odkxdm$6DHA.2760@TK2MSFTNGP09.phx.gbl... > defined words, such as winword or excel. If this is the case, does anyone > know where this list of words or the additional paths are stored?
You'll find them here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
You can add your own if you need/want to.
|
Excellent. Thanks Paul.
Ray at work
"Paul R. Sadowski" wrote in message news:%23AhO%233$6DHA.2656@TK2MSFTNGP11.phx.gbl... > > "Ray at <%=sLocation%> [MVP]" wrote in > message news:Odkxdm$6DHA.2760@TK2MSFTNGP09.phx.gbl... > > defined words, such as winword or excel. If this is the case, does anyone > > know where this list of words or the additional paths are stored? > > You'll find them here: > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths > > You can add your own if you need/want to. > >
|
Ray at <%=sLocation%> [MVP] [%=sLocation%] posted:
> Does anyone know if the Run dialog is set to look in paths to > interpret commands beyond what is defined in %PATH%? The reason I > ask is that I can launch Word or Excel by entering "winword" or > "excel" in the Run dialog, but this does not hold true at the command > prompt, since my Office path is not part of my %PATH% variable. So, > it seems that the Run dialog must look at %PATH% and then also look > either in other paths or at a list of other defined words, such as > winword or excel. If this is the case, does anyone know where this > list of words or the additional paths are stored?
In additional to Ray's post, note that you can also run "start winword" or "start excel" from the command prompt.
ws
-- The sea was angry that day, my friends. Like an old man, trying to send back soup at a deli.
|
This I will use all the time now. Thank, Wadester.
Ray at work
"Wadester" wrote in message news:u80BR9$6DHA.3304@tk2msftngp13.phx.gbl...
> > In additional to Ray's post, note that you can also run "start winword" > or "start excel" from the command prompt. > > ws > > -- > The sea was angry that day, my friends. Like an old man, trying to send > back soup at a deli. > >
|
"Wadester" wrote:
>In additional to Ray's post, note that you can also run "start winword" >or "start excel" from the command prompt. > >ws > Or you could
start myfile.xls start myfile.doc
which opens the files in the app.
-- Greetings Matthias________________________________________ For help on nt commands enter in a cmd window: W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
|
Matthias Tacke [Matthias@Tacke.de] posted: [color=blue] > "Wadester" wrote: > [color=green] >> In additional to Ray's post, note that you can also run "start >> winword" or "start excel" from the command prompt. >> >> ws >>[/color] > Or you could > > start myfile.xls > start myfile.doc > > which opens the files in the app.[/color]
Actually, you don't need the "start" for those commands. Just running "myfile.xls" should use the default action on that file type, which opens it in the correct app. I always get a little impatient when I see people type "notepad readme.txt" when you can just type "readme.txt" and get the same thing. :)
You can also type "start http://www.microsoft.com", which starts your browser pointing at that page.
ws
-- The sea was angry that day, my friends. Like an old man, trying to send back soup at a deli.
|
"Ray at <%=sLocation%> [MVP]" wrote in message news:Odkxdm$6DHA.2760@TK2MSFTNGP09.phx.gbl...[color=blue] > Does anyone know if the Run dialog is set to look in paths to interpret > commands beyond what is defined in %PATH%? The reason I ask is that I can > launch Word or Excel by entering "winword" or "excel" in the Run dialog,[/color] but[color=blue] > this does not hold true at the command prompt, since my Office path is not > part of my %PATH% variable. So, it seems that the Run dialog must look at > %PATH% and then also look either in other paths or at a list of other > defined words, such as winword or excel. If this is the case, does anyone > know where this list of words or the additional paths are stored?[/color]
Good question. My guess is the registry. I found a number of references there to winword and other apps that can also be launched from the run dialog but are not on the path. One likely one was:
hklm/software/classes/applications/app.exe/
The actual path to the executable was not always at the same offset within that key, however. Quicken's was the default value in shell/open/command, whereas Winword was at shell/edit/command.
/Al
|
"Al Dunbar [MS-MVP]" wrote: [color=blue] > Good question. My guess is the registry. I found a number of references > there to winword and other apps that can also be launched from the run > dialog but are not on the path. One likely one was: > > hklm/software/classes/applications/app.exe/[/color]
This one is the most common one:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\
-- torgeir Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: [url]http://www.microsoft.com/technet/scriptcenter[/url]
|
Call me cautious, but I usually first check out the associations to make sure they are not "hijacked" in any way, and then I use the START or myfile.xls syntax. It's like making sure your alias file is sane and that '.' is not in the PATH on *nix...
-- //David IIS This posting is provided "AS IS" with no warranties, and confers no rights. // "Wadester" wrote in message news:e7tCwqM7DHA.2676@TK2MSFTNGP10.phx.gbl... Matthias Tacke [Matthias@Tacke.de] posted: [color=blue] > "Wadester" wrote: > [color=green] >> In additional to Ray's post, note that you can also run "start >> winword" or "start excel" from the command prompt. >> >> ws >>[/color] > Or you could > > start myfile.xls > start myfile.doc > > which opens the files in the app.[/color]
Actually, you don't need the "start" for those commands. Just running "myfile.xls" should use the default action on that file type, which opens it in the correct app. I always get a little impatient when I see people type "notepad readme.txt" when you can just type "readme.txt" and get the same thing. :)
You can also type "start http://www.microsoft.com", which starts your browser pointing at that page.
ws
-- The sea was angry that day, my friends. Like an old man, trying to send back soup at a deli.
|
"Ray at <%=sLocation%> [MVP]" wrote in message news:Odkxdm$6DHA.2760@TK2MSFTNGP09.phx.gbl... > defined words, such as winword or excel. If this is the case, does anyone > know where this list of words or the additional paths are stored?
You'll find them here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
You can add your own if you need/want to.
|
Excellent. Thanks Paul.
Ray at work
"Paul R. Sadowski" wrote in message news:%23AhO%233$6DHA.2656@TK2MSFTNGP11.phx.gbl... > > "Ray at <%=sLocation%> [MVP]" wrote in > message news:Odkxdm$6DHA.2760@TK2MSFTNGP09.phx.gbl... > > defined words, such as winword or excel. If this is the case, does anyone > > know where this list of words or the additional paths are stored? > > You'll find them here: > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths > > You can add your own if you need/want to. > >
|
Ray at <%=sLocation%> [MVP] [%=sLocation%] posted:
> Does anyone know if the Run dialog is set to look in paths to > interpret commands beyond what is defined in %PATH%? The reason I > ask is that I can launch Word or Excel by entering "winword" or > "excel" in the Run dialog, but this does not hold true at the command > prompt, since my Office path is not part of my %PATH% variable. So, > it seems that the Run dialog must look at %PATH% and then also look > either in other paths or at a list of other defined words, such as > winword or excel. If this is the case, does anyone know where this > list of words or the additional paths are stored?
In additional to Ray's post, note that you can also run "start winword" or "start excel" from the command prompt.
ws
-- The sea was angry that day, my friends. Like an old man, trying to send back soup at a deli.
|
This I will use all the time now. Thank, Wadester.
Ray at work
"Wadester" wrote in message news:u80BR9$6DHA.3304@tk2msftngp13.phx.gbl...
> > In additional to Ray's post, note that you can also run "start winword" > or "start excel" from the command prompt. > > ws > > -- > The sea was angry that day, my friends. Like an old man, trying to send > back soup at a deli. > >
|
"Wadester" wrote:
>In additional to Ray's post, note that you can also run "start winword" >or "start excel" from the command prompt. > >ws > Or you could
start myfile.xls start myfile.doc
which opens the files in the app.
-- Greetings Matthias________________________________________ For help on nt commands enter in a cmd window: W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
|
Matthias Tacke [Matthias@Tacke.de] posted: [color=blue] > "Wadester" wrote: > [color=green] >> In additional to Ray's post, note that you can also run "start >> winword" or "start excel" from the command prompt. >> >> ws >>[/color] > Or you could > > start myfile.xls > start myfile.doc > > which opens the files in the app.[/color]
Actually, you don't need the "start" for those commands. Just running "myfile.xls" should use the default action on that file type, which opens it in the correct app. I always get a little impatient when I see people type "notepad readme.txt" when you can just type "readme.txt" and get the same thing. :)
You can also type "start http://www.microsoft.com", which starts your browser pointing at that page.
ws
-- The sea was angry that day, my friends. Like an old man, trying to send back soup at a deli.
|
"Ray at <%=sLocation%> [MVP]" wrote in message news:Odkxdm$6DHA.2760@TK2MSFTNGP09.phx.gbl...[color=blue] > Does anyone know if the Run dialog is set to look in paths to interpret > commands beyond what is defined in %PATH%? The reason I ask is that I can > launch Word or Excel by entering "winword" or "excel" in the Run dialog,[/color] but[color=blue] > this does not hold true at the command prompt, since my Office path is not > part of my %PATH% variable. So, it seems that the Run dialog must look at > %PATH% and then also look either in other paths or at a list of other > defined words, such as winword or excel. If this is the case, does anyone > know where this list of words or the additional paths are stored?[/color]
Good question. My guess is the registry. I found a number of references there to winword and other apps that can also be launched from the run dialog but are not on the path. One likely one was:
hklm/software/classes/applications/app.exe/
The actual path to the executable was not always at the same offset within that key, however. Quicken's was the default value in shell/open/command, whereas Winword was at shell/edit/command.
/Al
|
"Al Dunbar [MS-MVP]" wrote: [color=blue] > Good question. My guess is the registry. I found a number of references > there to winword and other apps that can also be launched from the run > dialog but are not on the path. One likely one was: > > hklm/software/classes/applications/app.exe/[/color]
This one is the most common one:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\
-- torgeir Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: [url]http://www.microsoft.com/technet/scriptcenter[/url]
|
Call me cautious, but I usually first check out the associations to make sure they are not "hijacked" in any way, and then I use the START or myfile.xls syntax. It's like making sure your alias file is sane and that '.' is not in the PATH on *nix...
-- //David IIS This posting is provided "AS IS" with no warranties, and confers no rights. // "Wadester" wrote in message news:e7tCwqM7DHA.2676@TK2MSFTNGP10.phx.gbl... Matthias Tacke [Matthias@Tacke.de] posted: [color=blue] > "Wadester" wrote: > [color=green] >> In additional to Ray's post, note that you can also run "start >> winword" or "start excel" from the command prompt. >> >> ws >>[/color] > Or you could > > start myfile.xls > start myfile.doc > > which opens the files in the app.[/color]
Actually, you don't need the "start" for those commands. Just running "myfile.xls" should use the default action on that file type, which opens it in the correct app. I always get a little impatient when I see people type "notepad readme.txt" when you can just type "readme.txt" and get the same thing. :)
You can also type "start http://www.microsoft.com", which starts your browser pointing at that page.
ws
-- The sea was angry that day, my friends. Like an old man, trying to send back soup at a deli.
|
|
|
|