LaDestitute
Member
(Side-note: For those still familiar with me, I haven't been in here in a while. My life has been very hectic, but to say; some unexpected stuff happened/shit happens.)
Note, this is the second batch file I have made with the same purpose: To backup files automatically once run. However, I've hit a bump with trying to get it to work. I've looked through it dozens of time, everything looks okay to me. The batch file basically just stops working after the second backing up job, and only displays a "_" constantly on the third line. Also, how do I properly use the switch for copying hidden files?
Note, this is the second batch file I have made with the same purpose: To backup files automatically once run. However, I've hit a bump with trying to get it to work. I've looked through it dozens of time, everything looks okay to me. The batch file basically just stops working after the second backing up job, and only displays a "_" constantly on the third line. Also, how do I properly use the switch for copying hidden files?
Code:
@echo off
dir "C:\Users\Main Account\Desktop" > H:\Backup\DesktopFiles.txt
xcopy "C:\Users\Main Account\Desktop" H:\Backup\Desktop /D /S /Q /G /H /R /Y /I
dir "C:\Users\Main Account\Downloads" > H:\Backup\DownloadsFiles.txt
xcopy "C:\Users\Main Account\Downloads" H:\Backup\Downloads /D /S /Q /G /H /R /Y /I
dir "C:\Users\Main Account\Documents" > H:\Backup\DocumentsFiles.txt
xcopy "C:\Users\Main Account\Documents" H:\Backup\Documents /D /S /Q /G /H /R /Y /I
dir "C:\Users\Main Account\Music" > H:\Backup\MusicFiles.txt
xcopy "C:\Users\Main Account\Music" H:\Backup\Music /D /S /Q /G /H /R /Y /I
dir "C:\Users\Main Account\Pictures" > H:\Backup\PicturesFiles.txt
xcopy "C:\Users\Main Account\Pictures" H:\Backup\Pictures /D /S /Q /G /H /R /Y /I
dir "C:\Users\Main Account\Videos" > H:\Backup\VideosFiles.txt
xcopy "C:\Users\Main Account\Videos" H:\Backup\Videos /D /S /Q /G /H /R /Y /I
dir "C:\Users\Main Account\AppData" > H:\Backup\AppData.txt
xcopy "C:\Users\Main Account\AppData" H:\Backup\AppData /D /S /Q /G /H /R /Y /I
pause