Search this site!

Return to the CSB Support home page
WSH Backup Script   |   BLaunch Utility
WSH Backup Script
Description:
This is the most recent version (1.0e) of my backup script file, written using Windows Shell Script (WSH).  New features include:

Store backups to a different location (drive or directory) than the .tlx file itself (including a ZIP or CD R/W  or Network drive).  
Control how many prior versions of your .tlx file you wish to maintain
Create and maintain a log file of backups performed
New error checking routines to verify that file and directories exist
Added opening screen to display information on file to be backed up

How to use:
1. Copy the script, as listed below, into your favorite text editor program.

2. Modify the variables as noted in the section labeled:
 * START CUSTOMIZATION AREA *

3. If you are using Windows ME or Windows 98, you may need to download and install the free WSH utility from Microsoft. Windows 2000 & XP come preloaded with the WSH scripting utility.

4. Create a shortcut on your desktop, and try it out!

Example:
Download the code
right click on link, then click on 'Save target (or frame) as'
Other information:
Format of the name of the backup files:

If your CSB file is named SampleCSB.tlx,
then the backup files will be named:

SampleCSB_Backup_1.tlx
SampleCSB_Backup_2.tlx
...
SampleCSB_Backup_5.tlx


Source code: I have listed below those parameters in the source file that may need to be modified
(lines you will need to modified are bold faced)
'
' *** START CUSTOMIZATION AREA ***
'
Max = 5
strFileName = "SampleCSB.tlx"
strDir = "C:\My Documents\"
strLogName  = "CSB_Backup.log"   
strBackupDir = "E:\Backup\"
strProgram = "C:\Program Files\Globalscape\CuteSITE Builder\program\csb.exe"
'
' *** END CUSTOMIZATION AREA ***