home *** CD-ROM | disk | FTP | other *** search
/ The Best of the Best / _.img / 02043 / kfz / drucke.bat < prev    next >
DOS Batch File  |  1992-02-01  |  1KB  |  32 lines

  1. @echo off
  2. REM ┌─────────────────────────────────────────────────────────────────────────┐
  3. REM │                    (C) Copyright Erich Schuster 1992                    │
  4. REM │                                                                         │
  5. REM │                    Batch zum Drucken einer Textdatei                    │
  6. REM └─────────────────────────────────────────────────────────────────────────┘
  7. cls
  8. if '%1' == '' goto noparm
  9. if not exist %1 goto error
  10. echo:
  11. echo Bitte den Drucker einschalten und Papier einlegen...
  12. pause
  13. type %1 > prn
  14. goto end
  15. :noparm
  16. echo 
  17. echo           █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
  18. echo           █  Beim Aufruf von 'DRUCKE' die zu druckende   █
  19. echo           █  Datei mitgeben, z.B. 'drucke info.txt'      █
  20. echo           █                                              █
  21. echo           ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  22. echo:
  23. goto end
  24. :error
  25. echo 
  26. echo:
  27. echo      Fehler: Die Datei %1 existiert nicht !
  28. echo     ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  29. echo:
  30. echo:
  31. :end
  32.