how would i fix this line if i should not use &&?
Just use one ampersand (&) if you merely want to join commands in one line
In Unix and Windows & is the command separator
command1 & command2 means "execute command1 and then execute command2"
&& is a conditional execution operator
command1 && command2 means "execute command1 and if command1 returns a zero errorlevel then execute command2"
The opposite is ||
command1 || command2 means "execute command1 and if command1 returns a non-zero errorlevel then execute command2"
Is there something better to use than xcopy? (Free for commercial use)
Many people like Robocopy