Aliases in Windows command prompt

后端 未结 16 2520
故里飘歌
故里飘歌 2020-11-22 10:47

I have added notepad++.exe to my Path in Environment variables.

Now in command prompt, notepad++.exe filename.txt opens the filename

16条回答
  •  醉酒成梦
    2020-11-22 11:26

    First, you could create a file named np.cmd and put it in the folder which in PATH search list. Then, edit the np.cmd file as below:

    @echo off
    notepad++.exe
    

提交回复
热议问题