OTHER
TECH TIPS

 

 

 

SURFCAM Tech Tip

Surfcam Backup Script

Are you tired of manually backing up your SURFCAM Support Files?

This batch file will automatically backup the Primary SURFCAM Support files.

Since SURFCAM can be installed in many locations we have made this script to run from the SURFCAM folder, no matter where it is installed.

  1. Create a Surfcam-Backup.txt file in your ..\SURFCAM Folder
  2. Open the Surfcam-Backup.txt file
  3. Copy the Script below and paste it into the txt file. (REM Line to REM Line)
  4. Save and close the file
  5. Rename the file to Surfcam-Backup.bat
  6. Double click the Surfcam-Backup.bat file, a DOS window will appear displaying the running script.

A copy of your Primary SURFCAM Support Files will be copied into a C:\SurfcamBackupFiles\ folder.

You may edit this script to have a different destination folder or add additional files to be copied.

REM START OF BACKUP

CD Hole Processes
xcopy "*.*" "c:\SurfcamBackupFiles\Hole Processes\" /Y
CD ..

CD Tool
xcopy "*.*" "c:\SurfcamBackupFiles\Tool\" /Y
CD ..

CD Template
xcopy "*.*" "c:\SurfcamBackupFiles\Template\" /Y
CD ..

CD Postlib
xcopy "postform.m" "c:\SurfcamBackupFiles\Postlib\" /Y
xcopy "postform.e" "c:\SurfcamBackupFiles\PostLib\" /Y
xcopy "postform.l" "c:\SurfcamBackupFiles\Postlib\" /Y
CD Spost
xcopy "uncx*.*" "c:\SurfcamBackupFiles\Postlib\Spost\" /Y
CD ..
CD ..

CD V5_2
xcopy "colors.ini" "c:\SurfcamBackupFiles\V5\" /Y
xcopy "hotkeys.ini" "c:\SurfcamBackupFiles\V5\" /Y
xcopy "surfcam.pst" "c:\SurfcamBackupFiles\V5\" /Y
xcopy "surfcam.ini" "c:\SurfcamBackupFiles\V5\" /Y
xcopy "*.mdb" "c:\SurfcamBackupFiles\V5\" /Y

CD Mpost
xcopy "post.ini" "c:\SurfcamBackupFiles\V5\Mpost\" /Y
CD ..

CD Spost
xcopy "config.tbl" "c:\SurfcamBackupFiles\V5\Spost\" /Y
CD ..

CD SDNC
xcopy "sdnc.sdnccfg" "c:\SurfcamBackupFiles\V5\SDNC\" /Y
CD ..
REM END OF BACKUP