home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
pcmag
/
vol8n04.arc
/
FILMATCH.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-09-30
|
492b
|
15 lines
ECHO OFF
REM The next two lines delete any OLD files that don't
REM have a matching CSV file.
RENAME *.OLD *.
FOR %%h IN (*.) DO IF NOT EXIST %%h.CSV ERASE %%h
REM Restore the OLD extension to the old files and
REM remove the extension from the CSV files.
RENAME *. *.OLD
RENAME *.CSV *.
REM For any CSV file that doesn't have a corresponding OLD
REM file, create one by copying a blank template.
FOR %%h IN (*.) DO IF NOT EXIST %%h.OLD COPY FILE.TMP %%h.OLD
RENAME *. *.CSV