Windows: start a file using a (non-default) shell verb like “edit” from .bat or command-line

前端 未结 4 817
醉话见心
醉话见心 2021-02-15 16:20

How can I start a file with an associated non-default command (shell verb) like \"edit\", \"print\", ... from command-line or from a .bat script by usi

4条回答
  •  猫巷女王i
    2021-02-15 16:25

    Not sure if this is what you are looking for, but using the START command opens the file I want to edit in the default program.

    START "" "Mypdf.pdf"
    START "" "Myfile.txt"
    START "" "Myjpg.jpg"
    ETCETERA ETCETERA........
    

提交回复
热议问题