dangerous_dom Wrote: 
> Assuming you have robocopy installed and your paths are right (go to the
> command prompt and type 'robocopy' to test it), you will then have to
> edit the drive/folders to match yours. Works great for me but you will
> have different folder names. Also, what OS are you using?
> 
> For more help with batch file commands, try here
> http://www.computerhope.com/batch.htm
I adjusted the paths to match mine but it appeared to actually perform
the functions rather than offer me a choice of mirror or backup. 
Here's what I get:

echo.

echo  Dom's Backup Script
Dom's Backup Script
echo  -------------------
-------------------
echo.

set /p choice= Backup, Mirror or Quit (B/M/Q)? :
Backup, Mirror or Quit (B/M/Q)? :
if '%choice%'=='b' goto startbackup
if '%choice%'=='m' goto startmirror
if '%choice%'=='q' goto end
goto startbatch


:startbackup
robocopy /S /IT "C:\documents and settings\jim\desktop\folder1"
"C:\documents a
nd settings\jim\desktop\folder3"

-------------------------------------------------------------------------------
ROBOCOPY     ::     Robust File Copy for Windows     ::     Version
XP010
-------------------------------------------------------------------------------

Started : Fri Mar 24 09:22:19 2006

Source : C:\documents and settings\jim\desktop\folder1\
Dest : C:\documents and settings\jim\desktop\folder3\

Files : *.*

Options : *.* /S /COPY:DAT /IT /R:1000000 /W:30

------------------------------------------------------------------------------

0    C:\documents and
settings\jim\desktop\folder1\
3    C:\documents and
settings\jim\desktop\folder1\Bi
ll\
3    C:\documents and
settings\jim\desktop\folder1\Bo
b\

------------------------------------------------------------------------------

Total    Copied   Skipped  Mismatch    FAILED   
Extras
Dirs :         3         0         3         0         0        
0
Files :         6         0         6         0         0        
0
Bytes :   705.0 k         0   705.0 k         0         0        
0
Times :   0:00:00   0:00:00                       0:00:00  
0:00:00

Ended : Fri Mar 24 09:22:19 2006
goto finish

:startmirror
robocopy /MIR "C:\documents and settings\jim\desktop\folder1"
"C:\documents and
settings\jim\desktop\folder3"

-------------------------------------------------------------------------------
ROBOCOPY     ::     Robust File Copy for Windows     ::     Version
XP010
-------------------------------------------------------------------------------

Started : Fri Mar 24 09:22:20 2006

Source : C:\documents and settings\jim\desktop\folder1\
Dest : C:\documents and settings\jim\desktop\folder3\

Files : *.*

Options : *.* /S /E /COPY:DAT /PURGE /MIR /R:1000000 /W:30

Shouldn't it ask for input from me?


-- 
Kyle
------------------------------------------------------------------------
Kyle's Profile: http://forums.slimdevices.com/member.php?userid=2541
View this thread: http://forums.slimdevices.com/showthread.php?t=22161

_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to