Windows equivalent of the Mac OS X “open” command

前端 未结 9 1346
轮回少年
轮回少年 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!

    0 讨论(0)
  • 2021-02-05 09:19

    Only explorer.exe appears to work under cygwin.

    0 讨论(0)
  • 2021-02-05 09:20

    Use start
    I am using Windows 10 and:

    > start .          
    

    Opens the current directory in File Explorer

    > start text.txt
    

    Opened text file in Notepad++ (It is set as my default Txt editor)

    0 讨论(0)
提交回复
热议问题