You are on page 1of 1

::Script to Synchronize Data on Point-to-Point Connection .

::IMPORTANT: THIS SCRIPT MUST BE COPIED TO AND RUN FROM OLD PC!!!
::Created by Wijoyo Kusumo <wijoyo.kusumo@hp.com> for AIA Seat Management 2 Proj
ect.
::Date Created: 25-Feb-2010.
::Hewlett-Packard (Indonesia).
::Execute Program from Old PC.
@Echo Off
::Capture the Folder to be Synchronized.
echo ATTENTION: PLEASE MAKE SURE YOU ENTERED A CORRECT FOLDER NAME!!!
echo.
echo.
set /p _SoeID=Enter Folder:
::Connect the New PC
net use v: \\10.89.1.1\d$ aia-financial /user:Administrator
::Synchronization Process.
::Check whether the folder is exist or not. If exist, synch data will be continu
ed, if not exist, synch data will be terminated.
if not exist "v:\%_SoeID%" (
net use v: /delete
goto :END
) else (
echo.
echo Copying "Old PC D:\%_SoeID%" to "New PC D:\" - Please wait...
start /wait robocopy d:\%_SoeID% v:\Backup\%_SoeID%_BACKUP /zb /e /mir
echo.
echo Data Synchronization is Completed!
echo.
pause
net use v: /delete
exit
)
:END
echo.
echo "%_SoeID%" Folder does not exist. Program terminated!
echo.
echo.
cmd

You might also like