echo off rem SAFECOPY.BAT will copy a group of files to a new disk ONLY if rem enough room exists for all of the copied files. rem Syntax: rem SAFECOPY filespec d: rem For example: SPACE C:\COMM\*.* e: rem copies all files in the C:\COMM directory to drive E. space %1 %2 /sk /c if errorlevel 1 goto end xcopy %1 %2 :end