@echo off : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - : Filename: XCOPY-HD.BAT : OS: Windows 95 : Author: Chin Visit: CVibes.net : Purpose: Copy the entire contents of a hard drive to the root of another. : Requires: XCOPY32.EXE and the GUI for Windows 95 to be running. : Updated: 5/15/1997 : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - echo. echo XCOPY-HD.BAT written by Chin, CVibes.net echo. if "%1"=="" goto Syntax if "%2"=="" goto Syntax echo. echo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - echo Ready to XCopy32 all files from drive %1\ to drive %2\ echo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - echo. pause GOTO Start XCOPY32.EXE Within an MS-DOS box XCOPY, which runs XCOPY32.EXE, accepts additional parameters than when the computer is booted into Command Prompt only. These additional commands allow the copying of long filenames, system files, hidden files, and ignores any errors such as sharing violations. * To copy all files from the bootable hard drive (C:) to another: XCOPY C: D: /e /c /f /h /r /k /y Paramenters: /E Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T. /C Continues copying even if errors occur. /F Displays full source and destination file names while copying. /H Copies hidden and system files also. /R Overwrites read-only files. /K Copies attributes. Normal Xcopy will reset read-only attributes. /Y Overwrites existing files without prompting. :Start C: CD \ XCOPY32.EXE %1\ %2\ /e /c /f /h /r /k /y goto Exit :Message echo. echo Problem finding... %MSG2%... echo. goto Exit :Syntax echo. echo Please specify a [source] and [destination] drive... echo. echo e.g. xcopy-hd c: d: echo. goto Exit :Exit