home *** CD-ROM | disk | FTP | other *** search
- @echo off
- REM Hot Dots 3.0
- REM "Dirty up" a Hot Dots file with hard returns
- REM Before using your word processor
- REM Written by David Holladay and Caryn Navy
- REM The Usual syntax is DIRTY FILE
- REM This accesses file FILE.HD$ (always uses extension HD$)
- REM FILE = source file name (without extension)
-
- if %hotpath%&==& set hotpath=c:\hotdots
- if %1&==& goto dox
- if %1==? goto dox
- if exist %1.HD$ goto datayes
- echo This batch file is looking for a file called %1.HD$
- echo in the Hot Dots dollar dollar format
- echo %1.HD$ is not found (perhaps you can find it).
- goto final
- :datayes
- if exist %hotpath%\clean.rul goto progyes
- echo This batch file assumes that Hot Dots is in subdirectory
- echo %hotpath%. The file %hotpath%\CLEAN.RUL is not found. Please change
- echo this and other batch file to reflect the location
- echo of your Hot Dots software.
- goto final
- :progyes
- if %hotdata%&==& goto hard
- :floppy
- if exist %hotdata%zqz.pqm del %hotdata%zqz.pgm
- copy %1.hd$ %hotdata%zqz.pgm >nul
- pushdir >nul
- %hotpath%
- dx XYW,ASCD,%hotdata%zqz.pgm,%hotdata%zqz.pqq >nul
- popdir
- copy %hotdata%zqz.pqq %1.hd$ >nul
- del %hotdata%zqz.pqm
- del %hotdata%zqz.pqq
- goto final
- :hard
- if exist \zqz.pqq del zqz.pqq
- copy %1.hd$ \zqz.pqm >nul
- pushdir >nul
- cd %hotpath%
- dx XYW,ASCD,\zqz.pqm,\zqz.pqq >nul
- popdir
- copy \zqz.pqq %1.hd$ >nul
- del \zqz.pqm
- del \zqz.pqq
- goto final
- :dox
- echo This batch file has 1 parameter
- echo 1 -- file name without extension (source must use HD$ extension)
- echo ---
- echo This batch file "dirties up" your file with hard returns so you can use
- echo your word processor. Be sure to use CLEAN after you have made your
- echo changes so these extra returns can be deleted from your file.
- echo Example: DIRTY FISHY
- echo This batch file takes your file named FISHY.HD$ and modifies it.
-
- :final
- IF %HOTPATH%==C:\HOTDOTS SET HOTPATH=
-