Windows equivalent of the Mac OS X “open” command

前端 未结 9 1353
轮回少年
轮回少年 2021-02-05 08:25

Liu Chang asked a very similar question to this one here, Linux equivalent of the Mac OS X "open" command.

Is there a windows equivalent for the Mac OS X \"ope

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-05 09:14

    The closest thing available is start.


    If its first argument is double-quoted, that argument is treated as a window title rather than a filename. Thus, to use it robustly, add an empty string as the first argument:

    start "" "my filename.foo"
    

    Thank you to @Holger for pointing this out!

提交回复
热议问题