Saturday, September 08, 2012

Part-03 Creating Batch File

Oke, after downloading all aplication and create some backup profile, this time we would like to create batch file, so every backup profile that already created will be running  in sequence. and here's the bacth file i created for my backup profile, change as needed.

@echo off
start/wait D:\ProgramsApps\Deltacopy\DeltaC.exe 002009.dcp
start/wait D:\ProgramsApps\Deltacopy\DeltaC.exe 002010.dcp
start/wait D:\ProgramsApps\Deltacopy\DeltaC.exe 002011.dcp
start/wait D:\ProgramsApps\Deltacopy\DeltaC.exe 002012.dcp
start/wait D:\ProgramsApps\Deltacopy\DeltaC.exe 002013.dcp

and save it with name DeltaC.bat

Explenation :

start/wait Start application and wait for it to terminate
D:\ProgramsApps\Deltacopy\DeltaC.exe is my aplication location/path, change as needed
002009.dcp and another *.dcp file is file that holding backup profile name

In simple way start/wait D:\ProgramsApps\Deltacopy\DeltaC.exe 002009.dcp , it's command windows to run DeltaC.exe from it location and running 002009.dcp backup profile.

No comments: