Batch: Open a specific file in a specific program?
The accepted answer didn't work for me. I am not sure if it was because of the program I was trying to run, or because the path had spaces in (even though I wrapped it in quotes), or something else.
Anyway, I was able to do it be adding an empty string after the start
command.
For example:
start "" "C:\My Programs\myprogram.exe" "C:\My Files\myfile.txt"
You can add the direct path to the executable like
start C:\Windows\System32\write.exe [FILE]
Try:
start wordpad c:\test\test.txt