I want to open local file on Windows 10 with url parameters.
Opening webpages has been answered in several questions (ie escaping amperstands).
But how to open local files?
The following opens the file without any parameters:
start "" "file:///C:/test.html?par1=1&par2=test"
I have found that without using start it works, but I have no idea why:
"C:\Program Files\Google\Chrome\Application\chrome.exe" "file:///C:/test.html?par1=1&par2=test"
Can anybody explain why it works without start and why does not work with start?
--EDIT--
So from the comments of Gerhard and Mofi I realized that the start command needs the title as the first parameter and then the executable with its parameters. So as they wrote it should have "" after the start command like so:
start "" "C:\Program Files\Google\Chrome\Application\chrome.exe" "file:///C:/test.html?par1=1&par2=test"