07-28-2014, 12:49 PM | #1 | ||
College Prospect
Join Date: Sep 2010
|
Batch file for backing up leagues
Here's the code I use to back up leagues. There are two versions, one for leagues I commish, one for leagues I don't. The example code I use here uses OSFL for the league name. The directory where you choose to backup to, of course, is entirely up to you. In this example it is C:\mybackupfolder\OSFL\ -- replace with whatever you like.
The batch file (as well as the VBS script file) must be placed in the %APPDATA%\Solecismic Software\Front Office Football Seven\ directory. You may create a shortcut to the batch file wherever you like. 2015-04-29 rev: make use of FOF7 import/export folders. Much better this way. backup.bat (commish) Run this AFTER saving & exporting the stage file. Otherwise, your "export" folder may not contain the save files. Code:
Note that the timestamp code is region-specific (I'm in the US). I just put in the first thing that I found worked for me. You'll likely have to do a little headachey googling if it doesn't produce the right timestamp for you. zip.vbs To perform the zipping, I use this code which I found online. It is Windows specific. You can easily rewrite the batch file without zipping if you like; just name the folder "%TimeStamp%" to begin with rather than "New". The current way creates the "New" folder, copies everything over, zips it up, and then deletes the "New" folder. Code:
backup.bat (GM version) Run this AFTER importing a new stage file. It will also backup your previous export (i.e, your export for the stage file you are currently backing up). Code:
Use at your own risk! Last edited by aston217 : 05-14-2015 at 01:00 PM. |
||
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|