From Alexander Mueller :
>In a batch file I have a line like
>FOR %%A in (%1) do echo %%~A
>Is there a way to remove the double quotes in a FOR-loop
>that can handle parameters containing '&'?
With your query as stated:
FOR %%A in ("%~1") do ECHO %%~A
Quotes may exist so it is best to dequote (with the tilde: ~) to avoid ""double quoting"".
But FOR is not necessary for ECHO:
ECHO;%~1
ECHO(%~1
Use the second form if %~1 might contain "/?".
Frank