Hacking Good automatic save backup program

  • Thread starter Thread starter Satangel
  • Start date Start date
  • Views Views 4,488
  • Replies Replies 24
I have been messing with all of this on my own, it's really cool. My autorun.inf looks like:
QUOTE said:
[autorun]
open=savebackup.bat
action=Backup Saves
icon=C:\WINDOWS\system32\shell32.dll,7
And my .BAT file looks like:
QUOTE said:
:: variables
set drive=c:\
set backupcmd=xcopy /c /h /i /r /y
%backupcmd% "*.sav" "%drive%\Documents\Desktop\Downloads\NDS\NDS Saves Backup"
%backupcmd% "GBA\Save\*.sav" "%drive%\Documents\Desktop\Downloads\NDS\NDS Saves Backup\GBA Saves"
%backupcmd% "SNES\*.srm" "%drive%\Documents\Desktop\Downloads\NDS\NDS Saves Backup\SNeMulDS Saves"
%backupcmd% "SNES\*.sr0" "%drive%\Documents\Desktop\Downloads\NDS\NDS Saves Backup\SNeMulDS Saves"
%backupcmd% "NES\*.ss" "%drive%\Documents\Desktop\Downloads\NDS\NDS Saves Backup\NesDS Saves"
%backupcmd% "GB GBC\*.sav" "%drive%\Documents\Desktop\Downloads\NDS\NDS Saves Backup\LameBoy Saves"
This is for my M3 Simply, and it works great
smile.gif

(If you couldn't tell I also transfer over my GBA saves from the 3-in-1, and all of my Emulator saves as well)

I think I'll implement that thingy to open it afterwords too. All you guys with the DOS knowledge is great. Any more tips greatly appreciated!

--------------------------------------------------------EDIT--------------------------------------------------------

HOLY SH*T!!!!

After running this new .bat, the one I just have posted here, and running it the first time, I got BSOD'ed!!!!! Any of u Dos guys wanna help me out as to why XD

I also have this in file 'BOOTEX.LOG'
Looks like I really f*cked up
blink.gif

QUOTE
Checking file system on J:
The type of the file system is FAT32.


One of your disks needs to be checked for consistency. You
may cancel the disk check, but it is strongly recommended
that you continue.
Windows will now check the disk.                       Â
Volume Serial Number is 12C3-6765
Removing nonvalid long folder entry from \...
The size of the \customroboarena.nds entry is not valid.
Removing nonvalid long folder entry from \...
Removing nonvalid long folder entry from \...
Removing nonvalid long folder entry from \...
Removing nonvalid long folder entry from \...
Removing nonvalid long folder entry from \...
More than one MEGA_~01.SS entry in folder \NES.
Renamed to MEGA_~01.SS0.
More than one MEGA_~01.SS entry in folder \NES.
Renamed to MEGA_~01.SS0.
More than one MEGA_~01.SS entry in folder \NES.
Renamed to MEGA_~01.SS0.
More than one MEGA_~01.SS entry in folder \NES.
Renamed to MEGA_~01.SS1.
More than one MEGA_~01.SS entry in folder \NES.
Renamed to MEGA_~01.SS1.
More than one MEGA_~01.SS entry in folder \NES.
Renamed to MEGA_~01.SS0.
More than one MEGA_~01.SS entry in folder \NES.
Renamed to MEGA_~01.SS1.
More than one MEGA_~01.SS entry in folder \NES.
Renamed to MEGA_~01.SS2.
More than one MEGA_~01.SS entry in folder \NES.
Renamed to MEGA_~01.SS2.
Removing nonvalid long folder entry from \Phidias...
Removing nonvalid long folder entry from \Phidias...
Removing nonvalid long folder entry from \Phidias...
Removing nonvalid long folder entry from \Phidias...
Removing nonvalid long folder entry from \Phidias...
Removing nonvalid long folder entry from \Phidias...
\GBA\Fire Emblem 6.gba is cross-linked on allocation unit 158144.
Cross link resolved by copying.
Bad links in lost chain at cluster 44758 corrected.
Bad links in lost chain at cluster 44759 corrected.
Bad links in lost chain at cluster 44760 corrected.
Bad links in lost chain at cluster 44761 corrected.
Bad links in lost chain at cluster 44762 corrected.
Bad links in lost chain at cluster 44764 corrected.
Bad links in lost chain at cluster 44765 corrected.
Bad links in lost chain at cluster 44766 corrected.
Bad links in lost chain at cluster 44767 corrected.
Bad links in lost chain at cluster 44768 corrected.
Bad links in lost chain at cluster 44769 corrected.
Bad links in lost chain at cluster 44770 corrected.
Bad links in lost chain at cluster 44771 corrected.
Bad links in lost chain at cluster 44772 corrected.
Bad links in lost chain at cluster 44773 corrected.
Bad links in lost chain at cluster 44774 corrected.
Bad links in lost chain at cluster 44775 corrected.
Lost chain cross-linked at cluster 44776.  Orphan truncated.
Bad links in lost chain at cluster 44777 corrected.
Lost chain cross-linked at cluster 44778.  Orphan truncated.
Bad links in lost chain at cluster 44779 corrected.
Bad links in lost chain at cluster 44780 corrected.
Convert lost chains to files (Y/N)? Yes
39170048 bytes in 29 recovered files.
Windows has made corrections to the file system.

 Â 2036404224 bytes total disk space.
   Â 98021376 bytes in 601 hidden files.
     Â 180224 bytes in 44 folders.
 Â 1932312576 bytes in 816 files.
     Â 921600 bytes in bad sectors.
      4952064 bytes available on disk.

       Â 4096 bytes in each allocation unit.
     Â 497169 total allocation units on disk.
       Â 1209 allocation units available on disk.
hmmm... works if I only copy nds + gba saves. Also, I noticed when I ran the whole batch file and it BSOD'ed, it onyl copied gba, nds, and the .srm snes saves. is the way I tried to copy 2 different filetypes from a folder in two lines what's affecting this?
 
Great info on this thread. I never thought it was worth the trouble to make one of these batch files, but it was easier than I thought and I finally have one that does what I want.

Right now my batch file simply copies over any new or modified files to a single folder on my computer, and it keeps track of when it ran and what it did on a text file.

The last thing I wanted to try is mostly just for fun. I know it should be pretty simple to put the backup saves in a zip file. However, is it possible to then make the program automatically unzip it, add new files, then rezip it? Basically I only want to have one zip file with all my saves on it that gets updated each time.

I know this is overkill since the uncompressed folder with all the saves I've ever had is only 30-40 mb. It's not really about saving space, just wondering if it's possible without being too complicated.
 
Great info on this thread. I never thought it was worth the trouble to make one of these batch files, but it was easier than I thought and I finally have one that does what I want.

Right now my batch file simply copies over any new or modified files to a single folder on my computer, and it keeps track of when it ran and what it did on a text file.

The last thing I wanted to try is mostly just for fun. I know it should be pretty simple to put the backup saves in a zip file. However, is it possible to then make the program automatically unzip it, add new files, then rezip it? Basically I only want to have one zip file with all my saves on it that gets updated each time.

I know this is overkill since the uncompressed folder with all the saves I've ever had is only 30-40 mb. It's not really about saving space, just wondering if it's possible without being too complicated.

Boy, I'll tip my hand on my age, but there's definitely a command line switch in the old DOS PKZip program that added files to an existing Zip archive. No unzipping required.

I think you'll have to read through the documentation on the specific compression application you're using to see what you need to do to make this work. But I'm certain it's possible.

striderx
 
striderx:

Add this line to your batch file and it will give you the volume name in %vollabel%:

for /f "tokens=6" %%z in ('vol') do set vollabel=%%z
 

Site & Scene News

Popular threads in this forum