home *** CD-ROM | disk | FTP | other *** search
- @echo off
-
- REM
- REM COPYALL ver 1.0 was created by John Militano (UMMILIT2@CC.UMANITOBA.CA)
- REM If you have any comments or sugestions about copyall, I would love to
- REM hear them, just send them to the above address.
- REM
- REM COPYALL is distributed as FREEWARE. See the file COPYALL.TXT for more info
- REM
-
- iff "%1"=="" then
- echo Usage : COPYALL [d:][path]source [c:][path]destination
- quit
- endiff
- iff isdir %1 then
- >&nul
- else
- echo The source directory "%1" does not exist!
- quit
- endiff
- iff isdir %2 then goto COPY
- else goto CREATE
- endiff
-
- :CREATE
- echo The destination directory "%2" does not exist!
- input Do you wish to create this directory? [ny] %%choice
- iff "%choice"=="y" then
- echo creating %2...
- mkdir %2
- goto COPY
- else
- echo COPYALL aborted!
- quit
- endiff
-
- :COPY
- input Are you sure you want to copy "%1\*.*" to "%2"? [ny] %%choice2
- iff "%choice2"=="y" then
- echo copying %1\*.* to %2\
- copy /hqs %1 %2 >% null
- quit
- else
- echo COPYALL aborted!
- quit
- endiff
-