home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
copyall1.exe
/
COPYALL.BTM
(
.txt
)
< prev
next >
Wrap
4DOS Compressed Batch-To-Memory File
|
1994-08-29
|
526b
|
39 lines
@echo off
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