Open text file and program shortcut in a Windows batch file

后端 未结 12 1344
暗喜
暗喜 2020-12-13 17:59

I have two files in the same folder that I\'d like to run. One is a .txt file, and the other is the program shortcut to an .exe. I\'d like to make

12条回答
  •  伪装坚强ぢ
    2020-12-13 18:47

    The command-line syntax for opening a text file is:

    type filename.txt
    

    File types supported by this command include (but are not limited to): .doc, .txt, .html, .log

    If the contents is too long, you can add "|more" after "type filename.txt", and it will pause after each screen; to end the command before the end of the file, you can hold Ctrl + C.

提交回复
热议问题