set foo="quoted string"
set foo=%foo:"=% // Remove the quotes
# Removing quotes from batch script arguments
# e.g. c:/path/to/my-script.bat "my-first-argument"
set foo=%1 # Stores "my-first-argument" with the quotes
set foo=%~1 # Stores "my-first-argument" without the quotes
%~1 #only works with parameters.