home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / HANDICAP / HOTDOTS3.ZIP / DIRTY.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-04-16  |  1.9 KB  |  61 lines

  1. @echo off
  2. REM    Hot Dots 3.0
  3. REM    "Dirty up" a Hot Dots file with hard returns
  4. REM    Before using your word processor
  5. REM    Written by David Holladay and Caryn Navy
  6. REM    The Usual syntax is DIRTY FILE
  7. REM    This accesses file FILE.HD$  (always uses extension HD$)
  8. REM    FILE   = source file name (without extension)
  9.  
  10. if %hotpath%&==& set hotpath=c:\hotdots
  11. if %1&==& goto dox
  12. if %1==? goto dox
  13. if exist %1.HD$ goto datayes
  14. echo This batch file is looking for a file called %1.HD$
  15. echo in the Hot Dots dollar dollar format
  16. echo %1.HD$ is not found (perhaps you can find it).
  17. goto final
  18. :datayes
  19. if exist %hotpath%\clean.rul goto progyes
  20. echo This batch file assumes that Hot Dots is in subdirectory
  21. echo %hotpath%. The file %hotpath%\CLEAN.RUL is not found. Please change
  22. echo this and other batch file to reflect the location
  23. echo of your Hot Dots software.
  24. goto final
  25. :progyes
  26. if %hotdata%&==& goto hard
  27. :floppy
  28. if exist %hotdata%zqz.pqm del %hotdata%zqz.pgm
  29. copy %1.hd$ %hotdata%zqz.pgm >nul
  30. pushdir >nul
  31. %hotpath%
  32. dx XYW,ASCD,%hotdata%zqz.pgm,%hotdata%zqz.pqq >nul
  33. popdir
  34. copy %hotdata%zqz.pqq %1.hd$ >nul
  35. del %hotdata%zqz.pqm
  36. del %hotdata%zqz.pqq
  37. goto final
  38. :hard
  39. if exist \zqz.pqq del zqz.pqq
  40. copy %1.hd$ \zqz.pqm >nul
  41. pushdir >nul
  42. cd %hotpath%
  43. dx XYW,ASCD,\zqz.pqm,\zqz.pqq >nul
  44. popdir
  45. copy \zqz.pqq %1.hd$ >nul
  46. del \zqz.pqm
  47. del \zqz.pqq
  48. goto final
  49. :dox
  50. echo This batch file has 1 parameter
  51. echo 1 -- file name without extension (source must use HD$ extension)
  52. echo ---
  53. echo This batch file "dirties up" your file with hard returns so you can use
  54. echo your word processor. Be sure to use CLEAN after you have made your
  55. echo changes so these extra returns can be deleted from your file.
  56. echo Example: DIRTY FISHY
  57. echo This batch file takes your file named FISHY.HD$ and modifies it.
  58.  
  59. :final
  60. IF %HOTPATH%==C:\HOTDOTS SET HOTPATH=
  61.