'Open multiple .bat files with NotePad++ using a .bat file

Currently I use .bat files such as the following to open multiple .yml files across different location:

START "C:\Program Files\Notepad++\notepad++.exe" "D:\Location 1\settings.yml"
START "C:\Program Files\Notepad++\notepad++.exe" "D:\Location 2\settings.yml"
START "C:\Program Files\Notepad++\notepad++.exe" "D:\Location 3\settings.yml"
START "C:\Program Files\Notepad++\notepad++.exe" "D:\Location 4\settings.yml"

This works correctly for .txt, .yml, .json, files and more. However if I attempt to use the same procedure for opening .bat files, it fails.

Example:

START "C:\Program Files\Notepad++\notepad++.exe" "D:\Location 1\start1.bat"
START "C:\Program Files\Notepad++\notepad++.exe" "D:\Location 2\start2.bat"
START "C:\Program Files\Notepad++\notepad++.exe" "D:\Location 3\start3.bat"
START "C:\Program Files\Notepad++\notepad++.exe" "D:\Location 4\start4.bat"

My goal is to open these .bat files in notepad++ for editing. Instead, windows actually attempts to open the start*.bat files themselve outside of notepad++



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source