Pass a path with space to a batch file as a parameter
To pass parameters with spaces you need to quote the parameter, then you can remove the quotes using %~1
.
So the full script would look like
SET var5=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64\
CALL scripts\vc64.bat "%var5%"
SET var6=%~1vcvarsx86_amd64.bat
CALL %var6%