home *** CD-ROM | disk | FTP | other *** search
- @echo off
- REM Hot Dots 3.0
- REM Prepare a text file for Hot Dots file importation
- REM Execute only on a pure textfile BEFORE file importation
- REM After using your word processor
- REM Written by David Holladay and Caryn Navy
- REM The Usual syntax is PRETEXT FILE
-
- IF %HOTPATH%&==& SET HOTPATH=C:\HOTDOTS
- if %1&==& goto dox
- if %1==? goto dox
- if exist %1 goto datayes
- echo This batch file is looking for a file called %1
- echo that is a pure textfile
- echo %1 is not found (perhaps you can find it).
- goto final
- :datayes
- if exist %HOTPATH%\pretext.rul goto progyes
- echo This batch file assumes that Hot Dots is in subdirectory
- echo %HOTPATH%. The file %HOTPATH%\PRETEXT.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 %hotdata%zbt723.801 del %hotdata%zbt723.801
- global %1 %hotdata%zbt723.801 %hotpath%\pretext.rul /s
- copy %hotdata%zbt723.801 %1 >nul
- del %hotdata%zbt723.801
- goto final
- :dox
- echo This batch file has 1 parameter
- echo 1 -- file name
- echo ---
- echo This batch file prepares a pure textfile for file importation
- echo Example: PRETEXT FISHY.TXT
- echo This batch file takes your file named FISHY.TXT and modifies it.
-
- :final
- IF %HOTPATH%==C:\HOTDOTS SET HOTPATH=
-