CIVSVE is a crude Windows NT 5.0 and higher command line batch program that permits convenient archival and shuffling of save files for those who find the default system limiting. To use, download the attached file or copy dump in next post.
Usage is available by issuing CIVSVE with no arguments or the standard /?:
Examples
The simplest usage creates a timestamped backup of the file given in the first argument. Copies will be in BASE-YYYYMMDD-HHMMSS.[MAP|SVE] format, e.g. CIVIL0-20070826-171406.MAP.
Create a timestamped backup AND copy to CIVIL9.
Compress a timestamped backup with defined compressor then delete uncompressed backups.
Create a timestamped backup, copy CIVIL0 to CIVIL9, then delete CIVIL0
Strange but valid usage: after creating the timestamped backup CIVIL0 will be moved to NULL (deleted).
Also technically valid but a little pointless: creates then deletes timestamped backup.
Don't do this.
Gotchas:
Usage is available by issuing CIVSVE with no arguments or the standard /?:
Code:
Utility program for Sid Meier's Civilization (DOS) save files.
CIVSVE [drive:][path]CIVSRC [[drive:][path]CIVDST] [/COMPRESS] [/DELBACK]
[/MOVE]
[drive:][path]CIVSRC
Specifies location for save file to process
[[drive][path]CIVDST]
Specifies location for copy save file
/COMPRESS Create compressed archive along with backup MAP and SVE files
Must edit CIVSVE.BAT and set COMPRESSORPATH to use.
/DELBACK Delete backup MAP and SVE files. Use with /COMPRESS and/or /MOVE
/MOVE Delete CIVSRC after copying to CIVDST
View CIVSVE.BAT in a pager or text editor for more info.
Examples
Code:
C:\>CIVSVE CIVIL0
Code:
C:\>CIVSVE CIVIL0 CIVIL9
Code:
C:\>CIVSVE CIVIL0 /COMPRESS /DELBACK
Code:
C:\>CIVSVE CIVIL0 CIVIL9 /MOVE
Code:
C:\>CIVSVE CIVIL0 /MOVE
Code:
C:\>CIVSVE CIVIL0 /DELBACK
Code:
C:\>CIVSVE CIVIL0 /DELBACK /MOVE
Gotchas:
- CIVSVE currently isn't smart enough to strip extensions. Only bases are acceptable, e.g. CIVIL0 and not CIVIL0.MAP
- CIVSVE relies on command line features introduced after DOS 5 and likely after NT4. While none of the included functionality is inherently exclusive to NT5, to function in DOS, the program would require replacement logic along with a versioning system that fits in eight characters.
- While attempts were made to trap destructive actions such as bad filenames and illogical flag combinations, I cannot guarantee usage of this program will not lead to data loss. Bugs are likely. The following clause is included in the MIT License text but is reproduced here: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.