home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
sysutl
/
sh1_111.arc
/
CP.SH
< prev
next >
Wrap
Text File
|
1987-08-13
|
493b
|
21 lines
^ cp - copies files from source to current directory ^
if %# == 0
echo !
CP copies files from specified source to current directory with
prompting before copying each file.
Usage: cp <filespec> ...
Example: cp c:\Csource\*.c
!
exit
endif
shx -wd %{SH1FILES}sh1tmp.$$$ %0
for FLINE infile %{SH1FILES}sh1tmp.$$$
echo Do you want to copy %FLINE [Y/N] ?
accept YN
if '%YN' == 'Y' | '%YN' == 'y'
copy %FLINE
endif
endfor
del %{SH1FILES}sh1tmp.$$$