home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
USCX
/
DOSUT-16.ZIP
/
UNIQCOPY.BAT
< prev
next >
Wrap
DOS Batch File
|
1984-12-24
|
768b
|
28 lines
ECHO OFF
REM THIS PROGRAM COPIES FILES SELECTIVELY FROM ONE DRIVE TO ANOTHER
REM ONLY IF THE FILE IS NOT ON THE TARGET DISK
REM THE SYNTAX IS :
REM COPYNEW X Y
REM
REM WHERE X & Y ARE THE SOURCE AND TARGET DRIVES. NOTE THESE ARE
REM ENTERED LIKE X NOT X:
REM
IF X%1 == X GOTO ERROR1
IF X%2 == X GOTO ERROR2
IF %1 == %2 GOTO ERROR3
ECHO ON
%1:
FOR %%F IN (*.*) DO IF NOT EXIST %2:%%F COPY %1:%%F %2:%%F
GOTO END
:ERROR1
ECHO SOURCE DRIVE NAME MISSING
GOTO END
:ERROR2
ECHO TARGET DRIVE NAME MISSING
GOTO END
:ERROR3
ECHO SOURCE AND TARGET DRIVE NAMES CAN'T BE THE SAME
GOTO END
:END
ECHO ON