Reputation: 1445
Hi I have this code in my batch file
set destpath = "C:\"
copy help.txt %destpath%
pause
But I see that the command that gets executed while running the batch file is
copy help.txt
The batch file is not recognizing the 'destpath' variable at all. What could be the issue here?
Upvotes: 0
Views: 1111
Reputation: 40489
You should have no space before the equal sign. Try
set destpath=c:\
instead.
Upvotes: 2