在命令提示符下,某些程序可以通过键入 exe 文件的名称来启动,而有些则不能(未找到),但是可以使用该start
命令运行未找到的程序。例如,请参阅此终端会话:
>notepad
>wordpad
'wordpad' is not recognized as an internal or external command,
operable program or batch file.
>start wordpad
>
Run Code Online (Sandbox Code Playgroud)
那么究竟start
是做什么的
开始菜单中的运行命令确实接受写字板来启动写字板。这与APP_PATHS
Windows 95 中引入的东西有关(请参阅 Raymond Chen 的博客文章http://blogs.msdn.com/b/oldnewthing/archive/2011/07/25/10189298.aspx)。start 命令会搜索 APP_PATHS。