Try like this :
@echo off
set "$var=%~1"
set $var="http://localhost%$var:~2%"
set "$var=%$var:\=/%"
echo %$var%
3
solved Convert file path to web url with windows batch or powershell commands
Try like this :
@echo off
set "$var=%~1"
set $var="http://localhost%$var:~2%"
set "$var=%$var:\=/%"
echo %$var%
3
solved Convert file path to web url with windows batch or powershell commands