I'm trying to run this code:
Set a = "c:\a" set b = "c:\b" xcopy /d /y %a %b
But I don't know why it cannot recognize the second path.
The export in cmd is like
xcopy /d /y c:\a
Does anyone know why?
You should not have spaces before and after the "=" sign when setting the variables. And as Ignacio said, variables should end and start with %
So this should work correctly: