如何在 Windows XP 中添加开始->运行快捷方式?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/311496/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:38:41  来源:igfitidea点击:

How do you add Start->Run shortcuts in Windows XP?

windowswindows-xpshortcut

提问by glennkentwell

Does anyone know how you setup new commands to launch an application from the Start->Run box?

有谁知道如何设置新命令以从“开始”->“运行”框中启动应用程序?

ie. you can type "firefox", "winword" or "excel" into the Run box and those applications will open even though they're not in the system path, but others won't. For example, with Firefox, there's no files named firefox.* in any of my system path directories:

IE。您可以在“运行”框中键入“firefox”、“winword”或“excel”,即使这些应用程序不在系统路径中,它们也会打开,但其他应用程序则不会。例如,对于 Firefox,我的任何系统路径目录中都没有名为 firefox.* 的文件:

Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Subversion\bin;c:\Program Files\Microsoft
SQL Server\Tools\binn\

So there must be some way of linking applications with this path to create a shortcut command, maybe in the registry?

因此,必须有某种方式将应用程序与此路径链接起来以创建快捷方式命令,也许在注册表中?

For example, I want to be able to launch Google Talk from the Run command, but typing the executable's name "googletalk.exe" doesn't do anything, which makes sense because it's not in the system path, but neither is firefox.exe, and typing "firefox" works.

例如,我希望能够从 Run 命令启动 Google Talk,但是键入可执行文件的名称“googletalk.exe”并没有做任何事情,这是有道理的,因为它不在系统路径中,但 firefox.exe 也不在,然后输入“firefox”就可以了。

Does anyone have any ideas?

有没有人有任何想法?

回答by Tom Haigh

From http://commandwindows.com/runline.htm:

http://commandwindows.com/runline.htm

Adding applications to the Path

Alternatively, the Registry can be edited to explicitly contain the path to the desired executable file or files. The Registry key involved isHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths

  1. Create a new sub-key with the name of the executable file that you wish to add to the path. e .g., HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\somefile.exe
  2. In this new key, add a string variable named "Path" containing the value of the the path to your new executable file, e.g., C:\Program files\newprogramfolder\
  3. The new key will already have an empty variable (Default). Edit it to have the string value of entire address of the new program executable , e.g., C:\Program files\newprogramfolder\somefile.exe

将应用程序添加到路径

或者,可以编辑注册表以明确包含所需的一个或多个可执行文件的路径。涉及的注册表项是HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths

  1. 使用要添加到路径中的可执行文件的名称创建一个新的子项。例如,HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\somefile.exe
  2. 在这个新键中,添加一个名为“Path”的字符串变量,其中包含新可执行文件的路径值,例如 C:\Program files\newprogramfolder\
  3. 新键已经有一个空变量(默认)。编辑它以获得新程序可执行文件的整个地址的字符串值,例如,C:\Program files\newprogramfolder\somefile.exe

回答by Yew Long

3 steps.

3个步骤。

  1. Create a shortcut to the foo.exe you want to run (foo.lnk)

  2. Copy the foo.lnk to your C:\windows directory.

  3. Run foo.exe by simply typing "foo" in your run dialog. ("start foo" in cmd prompt works too)

  1. 创建指向要运行的 foo.exe (foo.lnk) 的快捷方式

  2. 将 foo.lnk 复制到 C:\windows 目录。

  3. 只需在运行对话框中键入“foo”即可运行 foo.exe。(cmd 提示符中的“start foo”也有效)

回答by drby

You could also use an application launcher like Launchy, Slickrunor Executor. That way you wouldn't have to mess with the registry. I use Executor and I can just select "send to -> executor" to create a shortcut for any app (or folder or whatever).

您还可以使用LaunchySlickrunExecutor等应用程序启动。这样您就不必弄乱注册表。我使用 Executor,我可以选择“发送到 - > executor”来为任何应用程序(或文件夹或其他任何东西)创建快捷方式。

回答by Kawa

Run works with search paths, which include the Path environment variable and some others. There might be more information in the MSDN, give me a moment and I'll look it up.

Run 使用搜索路径,其中包括 Path 环境变量和其他一些。MSDN 中可能有更多信息,请稍等,我会查找的。

回答by Kawa

I put a link to the application I want to launch in the "c:\windows" folder, and I use it all the time. You can also rename the link file, of course, to speed up things: for example, I type w, x or pp to launc Word, eXcel or PowerPoint.

我在“c:\windows”文件夹中放置了一个指向我想要启动的应用程序的链接,我一直在使用它。当然,您也可以重命名链接文件以加快速度:例如,我键入 w、x 或 pp 以启动 Word、eXcel 或 PowerPoint。