set "file=local-192.168.1.2.html" for %%I in ("%file%") do set "fullpath=%%~fI" start msedge "file:///%fullpath:/=\%"