home *** CD-ROM | disk | FTP | other *** search
- @echo off
- REM Hot Dots 3.0
- REM Clean up a Hot Dots file of hard returns
- REM After using your word processor
- REM Written by David Holladay and Caryn Navy
- REM The Usual syntax is CLEAN 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 exist %1.hd0 del %1.hd0
- global %1.hd$ %1.hd0 %hotpath%\clean.rul >nul
- copy %1.hd0 %1.hd$ >nul
- del %1.hd0
- 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 cleans up your file of hard returns which have been
- echo placed so you can use your word processor.
- echo Example: CLEAN FISHY
- echo This batch file takes your file named FISHY.HD$ and modifies it.
-
- :final
- IF %HOTPATH%==C:\HOTDOTS SET HOTPATH=
-