home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
UTILS2
/
OFCNHOME.ZIP
/
SYNCPCS.BAT
< prev
Wrap
DOS Batch File
|
1994-01-12
|
873b
|
27 lines
@echo off
cls
echo Synchronizing PCs...
REM Ask the user if we need to run oah s pass 2
c:\dos\choice /c:yn /t:y,10 /n "Are you going to do a backup ? [Y,n]: "
if errorlevel 2 goto runpcb
c:\uti\ofcnhom /n1 c:*.*
:runpcb
REM Make sure a copy of CONFIG and AUTOEXEC will be saved...
copy c:\config.sys c:\config.%pc%>nul
copy c:\autoexec.bat c:\autoexec.%pc%>nul
REM ...but not the actual files, to avoid overwriting the other PC's configuration.
REM (Setting off the "Archive" bits will tell CPB that these files have NOT changed.)
c:\dos\attrib -a c:\config.sys
c:\dos\attrib -a c:\autoexec.bat
REM Now run PC Backup (the /PS2 param only resets the mouse):
cpbackup /ps2
:sync
c:\dos\choice /c:yn /t:y,10 /n "Did you restore anything ? [Y,n]: "
if errorlevel 2 goto exit
REM User did a restore - Now run pass 1:
c:\uti\ofcnhom /n2 c:*.*
:done