To open a text file from command prompt simply enter the text file name into the command prompt, alternatively add a leading “notepad.exe” without the quotes if you insist but it should work like this