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

  1. @echo off
  2. REM    Hot Dots 3.0
  3. REM    Prepare a text file for Hot Dots file importation
  4. REM    Execute only on a pure textfile BEFORE file importation
  5. REM    After using your word processor
  6. REM    Written by David Holladay and Caryn Navy
  7. REM    The Usual syntax is PRETEXT FILE
  8.  
  9. IF %HOTPATH%&==& SET HOTPATH=C:\HOTDOTS
  10. if %1&==& goto dox
  11. if %1==? goto dox
  12. if exist %1 goto datayes
  13. echo This batch file is looking for a file called %1
  14. echo that is a pure textfile
  15. echo %1 is not found (perhaps you can find it).
  16. goto final
  17. :datayes
  18. if exist %HOTPATH%\pretext.rul goto progyes
  19. echo This batch file assumes that Hot Dots is in subdirectory
  20. echo %HOTPATH%. The file %HOTPATH%\PRETEXT.RUL is not found. Please change
  21. echo this and other batch file to reflect the location
  22. echo of your Hot Dots software.
  23. goto final
  24. :progyes
  25. if exist %hotdata%zbt723.801 del %hotdata%zbt723.801
  26. global %1 %hotdata%zbt723.801 %hotpath%\pretext.rul /s
  27. copy %hotdata%zbt723.801 %1 >nul
  28. del %hotdata%zbt723.801
  29. goto final
  30. :dox
  31. echo This batch file has 1 parameter
  32. echo 1 -- file name
  33. echo ---
  34. echo This batch file prepares a pure textfile for file importation
  35. echo Example: PRETEXT FISHY.TXT
  36. echo This batch file takes your file named FISHY.TXT and modifies it.
  37.  
  38. :final
  39. IF %HOTPATH%==C:\HOTDOTS SET HOTPATH=
  40.