Windows – Batch script to launch an application

batchwindows

I've a simple batch script npp.bat to open a file in Notepad++

"C:\Program Files\(x86)\Notepad++\notepad++.exe" %1

Notepad++ launches with the file when I run npp <file_name&gt> but the command window waits for the application to exit. I don't want it to wait.

Best Answer

Use start instead:

start "" "command here"

Edit: Do not miss the first pair of empty quotes, this is the title of the process/window.

start <title> <command> <parameters>

See start /? for further details.