For troubleshooting purposes, temporarily precede the "%backupcmd% ..." lines in the 4 and 5 subsections with "
echo %backupcmd% ..." This will tell the script to echo on screen what command it's designed to perform, in lieu of actually trying to perform it.
This can be system-dependent, but on my system it reveals subsection 4 is trying to execute:
xcopy /s /r /y /k /v /e /i "C:\Users\Dan\AppData\Roaming\Local" "F:\Save Game Files\Goes Back To AppData Folder"
while subsection 5 is trying to execute:
xcopy /s /r /y /k /v /e /i "C:\Users\Dan\AppData\Roaming\Roaming" "F:\Save Game Files\Goes Back To AppData Roaming Folder"
Obviously, these commands are only going to work if these folders exist:
"C:\Users\Dan\AppData\Roaming\Local"
"F:\Save Game Files\Goes Back To AppData Folder"
"C:\Users\Dan\AppData\Roaming\Roaming"
"F:\Save Game Files\Goes Back To AppData Roaming Folder"
The two C: folder locations look particularly suspicious to me. Check your system to see if Roaming\Local and Roaming\Roaming actually exist. They don't on mine ... hence, the error messages.
Looking at your script, I see those subsections are drawing part of the filespec from %AppData%, so that's where you're probably running into trouble. You need to modify that or use something else.
Technical aside: your filespec in subsection 4 finishes with "Local", but you're not telling the OS whether that refers to a file or a folder. If there's a folder named "Local" at
"C:\Users\Dan\AppData\Roaming" it will correctly guess you want all the files in the "Local" folder, but if there's no such folder there, it will assume you must be referring to a
file named "Local" at that location.
Since my system has neither a file nor a folder called "Local" in
"C:\Users\Dan\AppData\Roaming", the OS is assuming your script is referring to a file and hence the
"File not found - Local" error message.
The same goes for subsection 5.