home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
norge.freeshell.org (192.94.73.8)
/
192.94.73.8.tar
/
192.94.73.8
/
pub
/
computers
/
pcjr
/
games
/
EPG2.LZH
/
DIF.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-08-11
|
1KB
|
44 lines
echo off
cls
echo :-----------------------------------------------------
echo : Converting DIF file to ASCII file. (.DIF to .ASC)
echo :
echo : (C) Copyright (1988), Brown Bag Software
echo :-----------------------------------------------------
if exist %1.dif goto start
goto nofile
:start
dif2asc %1
if ERRORLEVEL 3 goto writerr
if ERRORLEVEL 2 goto formerr
if ERRORLEVEL 1 goto readerr
echo :
echo :
echo : DIF file successfully converted to a ASCII file.
echo :
echo : Your DIF file can now be loaded as a ASCII file with the same name.
echo :
echo : Reload the EPG program and select the 'Graph' type in the Data menu.
echo :
goto done
:readerr
echo :
echo : Read error on specified file.
echo :
goto done
:formerr
echo :
echo : DIF file format error - cannot convert. Check file type.
echo :
goto done
:writerr
echo :
echo : Write error on ASC file. Conversion unsuccessful.
echo :
goto done
:nofile
echo :
echo : ERROR: No file name specified or File not valid.
echo :
:done