go.bat
@echo off
set url=D:\Download\Path with space inside
echo "%url%"
pause
output:
C:\Users\Admin\Desktop>go
"D:\Download\Path with space inside"
Premere un tasto per continuare . . .
if i pass the parameter like this:
C:\Users\Admin\Desktop>go D:\Download\Path with spaces inside
@echo off
set url=%~1
echo "%url%"
pause
the output is wrong: the path is incorrect
C:\Users\Admin\Desktop>go D:\Download\Path with space inside
"D:\Download\Path"
any help please :D