Sikker kopiering med xcopy
HejJeg kunne godt tænke mig at lave en bat-fil som kopiere filer fra et drev til et andet. Jeg vil bare være sikker på alle filerne bliver kopieret.
Jeg har fundet dette på microsoft hjemmeside. Jeg mangler bare lidt hjælp til hvordan jeg bruger det.
http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechnol/winxppro/proddocs/xcopy.asp
@echo off
rem COPYIT.BAT transfers all files in all subdirectories of
rem the source drive or directory (%1) to the destination
rem drive or directory (%2)
xcopy %1 %2 /s /e
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort
if errorlevel 0 goto exit
:lowmemory
echo Insufficient memory to copy files or
echo invalid drive or command-line syntax.
goto exit
:abort
echo You pressed CTRL+C to end the copy operation.
goto exit
:exit