Is it possible to open a local HTML file in a web browser with parameters. The following is my script:
SETLOCAL ENABLEDELAYEDEXPANSION
:: Set the First Parameter - image directory - to a local variable for processing
SET imageDir=%1
:: Remove the double quotes from the image directory
SET imageDir=%~1
:: Replace any spaces with %20
set imageDir=!imageDir: =%%20!
:: Append image directory to the URL and launch
START file:///C:/Folder/demo.html?param=!imageDir!
The file currently opens, without the "param".
Many Thanks
file://references the file protocol. It is not possible with this protocol to add optional parameters which are processed usually on server side like?param=.... You need a locally installed webserver and usehttp://localhost/.