home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / gamegif / epg2.lzh / DIF.BAT < prev    next >
DOS Batch File  |  1988-08-11  |  1KB  |  44 lines

  1. echo off
  2. cls
  3. echo :-----------------------------------------------------
  4. echo :  Converting DIF file to ASCII file.  (.DIF to .ASC)
  5. echo :
  6. echo :      (C) Copyright (1988), Brown Bag Software
  7. echo :-----------------------------------------------------
  8. if exist %1.dif goto start
  9. goto nofile
  10. :start
  11. dif2asc %1
  12. if ERRORLEVEL 3 goto writerr
  13. if ERRORLEVEL 2 goto formerr
  14. if ERRORLEVEL 1 goto readerr
  15. echo :
  16. echo :
  17. echo : DIF file successfully converted to a ASCII file.
  18. echo :
  19. echo : Your DIF file can now be loaded as a ASCII file with the same name.
  20. echo :
  21. echo : Reload the EPG program and select the 'Graph' type in the Data menu.
  22. echo :
  23. goto done
  24. :readerr
  25. echo :
  26. echo : Read error on specified file.
  27. echo :
  28. goto done
  29. :formerr
  30. echo :
  31. echo :  DIF file format error - cannot convert. Check file type.
  32. echo :
  33. goto done
  34. :writerr
  35. echo :
  36. echo : Write error on ASC file.  Conversion unsuccessful.
  37. echo :
  38. goto done
  39. :nofile
  40. echo :
  41. echo : ERROR:  No file name specified or File not valid.
  42. echo :
  43. :done
  44.