https://www.windows-commandline.com/open-text-file-from-command-line/

进入command,直接输入需要打开的文件的名称, 然后按enter键即可

On  a Windows machine, we can open a text file from command prompt by just giving the file name.
For example to open a text file named file1.txt, we just need to type file1.txt in the command prompt and press ‘Enter’. 

c:> file1.txt

Note that file name should have the extension as .txt otherwise command prompt would not be able to identify which application need to be used to open the file.