为什么Windows'Run:'与CMD系列不同?

时间:2022-05-02 02:29:37

When I type 'http://www.google.com at the Windows Run: prompt it launches my default browser.

当我在Windows运行时输入'http://www.google.com:提示时,它会启动我的默认浏览器。

But when I do it at the CMD or Commnad prompt it does not. I assume that there is some form of RunDLL command being issued but I can't find out what.

但是当我在CMD或Commnad提示时,它没有。我假设有一些形式的RunDLL命令正在发布,但我找不到什么。

Does anyone have any insight?

有没有人有任何见解?

2 个解决方案

#1


I think it's the equivalent of using START.

我认为这相当于使用START。

If you try

如果你试试

START http://www.google.com

from the command line (or a batch file), it should work fine.

从命令行(或批处理文件),它应该工作正常。

#2


What Jon said appears to be correct. I tested it with mailto:someone@somewhere.com. Interestingly if you wish to make run work like the default behaviour of cmd, you can do the following:

Jon说的似乎是正确的。我用mailto:someone@somewhere.com测试了它。有趣的是,如果您希望使运行工作类似于cmd的默认行为,则可以执行以下操作:

Start -> Run -> cmd /c http://www.google.com. Not sure why anyone would ever need to do that though!

开始 - >运行 - > cmd / c http://www.google.com。不知道为什么有人会需要这样做!

#1


I think it's the equivalent of using START.

我认为这相当于使用START。

If you try

如果你试试

START http://www.google.com

from the command line (or a batch file), it should work fine.

从命令行(或批处理文件),它应该工作正常。

#2


What Jon said appears to be correct. I tested it with mailto:someone@somewhere.com. Interestingly if you wish to make run work like the default behaviour of cmd, you can do the following:

Jon说的似乎是正确的。我用mailto:someone@somewhere.com测试了它。有趣的是,如果您希望使运行工作类似于cmd的默认行为,则可以执行以下操作:

Start -> Run -> cmd /c http://www.google.com. Not sure why anyone would ever need to do that though!

开始 - >运行 - > cmd / c http://www.google.com。不知道为什么有人会需要这样做!