Hey guys,
I'm starting to code in DOS and I am having some troubles with the use of variables. I wrote a code to ROBOCOPY a given file to a disk of my choosing using a variable. Here's a shortened version of my code:
set backupdisk=G:
robocopy c:\users\... %backupdisk%\documents\backups /E /copyall
Every time I run it, the command prompt interprets it with a space between the variable and the rest of the path (%backupdisk% \documents\backups) so it never works,
Does someone know what's wrong with my code? Thanks!