Embed
Email

Backup Batch File

Document Sample

Shared by: wanghonghx
Categories
Tags
Stats
views:
3
posted:
11/26/2011
language:
English
pages:
3
Backup Important Files Automatically

When you get a new computer you would like to set it up similar to your old system. This procedure

avoids manually backing up your SURFCAM support files by using a batch file to automatically backup

postprocessors, tool and material databases, and initiation files.



Since SURFCAM can be installed in many locations this script file is made to run from any SURFCAM

folder, no matter what it is called or where it is installed. Example, Surfcam may have been installed

under a folder called SURFCAM_Vel2 instead of the default SURFCAM.



Procedure:

Create a file called Surf_Bak.txt in your C:\SURFCAM _Whatever folder. This can be done by

opening Notepad or Wordpad and clicking Save and giving it the name Surf_Bak.txt.



Copy the Script below and paste it into the txt file. Do not copy “**********”



Save and close the file



Rename the file to Surf_Bak.bat



Double click the Surf_Bak.bat file. A DOS window will appear displaying the running script.



A copy of your important SURFCAM Support Files will be copied into a folder called

C:\0_SurfcamBakupFiles. The purpose of it beginning with 0 is to locate it as the 1st folder in your C

drive for easy location.



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







Folders created for easy

file restoration









**********************************************

Place this text in your Surf_Bak.txt file folder

**********************************************



:: Surf_Bak

:: Batch file to backup files for retaining consistant Surfcam operation.

:: Developed for Velocity3, 6/29/2007

:: To change for newer versions of Surfcam, replace all Velocity2 names with the next revision name. eg. Velocity3





96c697bf-8b11-4eb8-98a6-dc32bea7af81.doc 1

11/26/2011

;; Programmer note, CD .. is incremental back to root directory

:: ************************************************************************



:: Path: Surfcam\Postlib

CD POSTLIB



xcopy "postform.m" "c:\0_SurfcamBackupFiles\M_post\" /Y

xcopy "postform.e" "c:\0_SurfcamBackupFiles\M_post\" /Y

xcopy "postform.l" "c:\0_SurfcamBackupFiles\M_post\" /Y



:: Path: Surfcam\Velocity3\Mpost

CD ..

CD VELOCITY3

CD MPOST



xcopy "post.ini" "c:\0_SurfcamBackupFiles\M_post\" /Y



:: Path: Surfcam\Postlib\Spost

CD ..

CD ..

CD POSTLIB

CD SPOST



xcopy "uncx*.*" "c:\0_SurfcamBackupFiles\S_post\" /Y



:: Path: Surfcam\Postlib\Spost\M_image

CD M_IMAGE



xcopy "*" "c:\0_SurfcamBackupFiles\S_post\" /Y



:: Path: Surfcam\Velocity3\Spost

CD ..

CD ..

CD ..

CD VELOCITY3

CD SPOST



xcopy "config.tbl" "c:\0_SurfcamBackupFiles\S_post\" /Y



:: Path: Surfcam\Tool

CD ..

CD ..

CD TOOL



xcopy "*.SCCTL" "c:\0_SurfcamBackupFiles\Tools\" /Y



:: Path: Surfcam\Velocity3

CD ..

CD VELOCITY3



xcopy "colors.ini" "c:\0_SurfcamBackupFiles\Velocity\" /Y

xcopy "hotkeys.ini" "c:\0_SurfcamBackupFiles\Velocity\" /Y

xcopy "surfcam.pst" "c:\0_SurfcamBackupFiles\Velocity\" /Y

xcopy "surfcam.ini" "c:\0_SurfcamBackupFiles\Velocity\" /Y

xcopy "dgtztlb.mdb" "c:\0_SurfcamBackupFiles\Velocity\" /Y

xcopy "drilltlb.mdb" "c:\0_SurfcamBackupFiles\Velocity\" /Y



96c697bf-8b11-4eb8-98a6-dc32bea7af81.doc 2

11/26/2011

xcopy "edmtlb.mdb" "c:\0_SurfcamBackupFiles\Velocity\" /Y

xcopy "lathetlb.mdb" "c:\0_SurfcamBackupFiles\Velocity\" /Y

xcopy "ldrlltlb.mdb" "c:\0_SurfcamBackupFiles\Velocity\" /Y

xcopy "milltlb.mdb" "c:\0_SurfcamBackupFiles\Velocity\" /Y

xcopy "material.mdb" "c:\0_SurfcamBackupFiles\Velocity\" /Y

xcopy "plungeroughtlb.mdb" "c:\0_SurfcamBackupFiles\Velocity\" /Y

xcopy "threadmilltlb.mdb" "c:\0_SurfcamBackupFiles\Velocity\" /Y

xcopy "srmmat.mdb" "c:\0_SurfcamBackupFiles\Velocity\" /Y

xcopy "srmtlb.mdb" "c:\0_SurfcamBackupFiles\Velocity\" /Y



:: Path: Surfcam\Velocity3\Sdnc

CD SDNC



xcopy "sdnc.sdnccfg" "c:\0_SurfcamBackupFiles\DNC\" /Y





********************************************

End of script file

********************************************









96c697bf-8b11-4eb8-98a6-dc32bea7af81.doc 3

11/26/2011



Related docs
Other docs by wanghonghx
Foundation Grants 2009-2010
Views: 3  |  Downloads: 0
2Referat_ LMU_100205
Views: 0  |  Downloads: 0
Beleggen
Views: 3  |  Downloads: 0
asw_may07_p27
Views: 0  |  Downloads: 0
comprehensive assessment planning
Views: 0  |  Downloads: 0
ROMANIA- Rromania
Views: 0  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!