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?
|
I'm trying to run this code:
But I don't know why it cannot recognize the second path. The export in cmd is like Does anyone know why?
| ||||
|
feedback
|
|
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:
| |||
|
feedback
|
|
Batch variables begin and end with a
| |||||
|
feedback
|