Start notepad++ with DOS command and open a file

  
        When developing, we have to check the log file frequently. I use notepad++ to open these log files. Sometimes notpad++ opens multiple files. It seems to be annoying. I usually turn off the file after checking the log, often after the file is closed. Open and check the file... Later I wrote a bat file, placed directly on the desktop, used it to open notepad++, and told it to open the file, so it is much more convenient, nonsense not much, directly on the bat file Dos Code @echo off set /p var=Please enter the letter to be written in the file cd C:\\MyProgramFiles\\Notepad++ if "%var%" == "n" start notepad++ C:\\MyProgramFiles\\apache-tomcat-5.5 .31\\logs\ fs.log if "%var%" == "h" start notepad++ C:\\MyProgramFiles\\apache-tomcat-5.5.31\\logs\\host_message.log if "%var%" == "s" start notepad++ C:\\MyProgramFiles\\apache-tomcat-5.5.31\\logs\\seculog.log if "%var%" == "w" start explorer C:\\MyProgramFiles\\apache-tomcat -5.5.31\\work
Copyright © Windows knowledge All Rights Reserved