home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
tfc22c.exe
/
DECP.BTM
next >
Wrap
Text File
|
1993-11-03
|
1KB
|
35 lines
setlocal
iff "%1" ne "a:" .AND. "%1" ne "b:" then
echo.
echo %@name[%0] by Tobias Oetiker -- oetiker@stud.ee.ethz.ch
echo or 2:301/516.4@fidonet
echo.
echo Usage: %@name[%0] x: [/K]
echo.
echo x - is the Floppy-Drive
echo /K - remove all corresponding files on the harddisk.
echo.
text
DEscription CoPy:
^^^^^^^^^^^^^^^^^
endtext
echo %@name[%0] searches the current directory for files which are also on the
echo specified Floppy-Disk Drive. It copies the descriptions from the
echo files in current Directory to the correponding Files on the Floppy-Disk.
echo.
quit
ENDIFF
for %file in (%1*.*) DO (
set name=%@name[%file].%@ext[%file]
IFF exist %name THEN
IFF "%@filesize[%file,b]"=="%@filesize[%name,b]" THEN
IFF "%@filedate[%file]"=="%@filedate[%name]" THEN
IFF "%@filetime[%file]"=="%@filetime[%name]" THEN
describe %file "%@descript[%name]"
if "%@upper[%2]"=="/K" del %name /q
ENDIFF
ENDIFF
ENDIFF
ENDIFF )
endlocal