home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / HANDICAP / HOTDOTS3.ZIP / CLEAN.BAT next >
Encoding:
DOS Batch File  |  1990-11-28  |  1.4 KB  |  42 lines

  1. @echo off
  2. REM    Hot Dots 3.0
  3. REM    Clean up a Hot Dots file of hard returns
  4. REM    After using your word processor
  5. REM    Written by David Holladay and Caryn Navy
  6. REM    The Usual syntax is CLEAN 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 exist %1.hd0 del %1.hd0
  27. global %1.hd$ %1.hd0 %hotpath%\clean.rul >nul
  28. copy %1.hd0 %1.hd$ >nul
  29. del %1.hd0
  30. goto final
  31. :dox
  32. echo This batch file has 1 parameter
  33. echo 1 -- file name without extension (source must use HD$ extension)
  34. echo ---
  35. echo This batch file cleans up your file of hard returns which have been
  36. echo placed so you can use your word processor.
  37. echo Example: CLEAN FISHY
  38. echo This batch file takes your file named FISHY.HD$ and modifies it.
  39.  
  40. :final
  41. IF %HOTPATH%==C:\HOTDOTS SET HOTPATH=
  42.