énfo: SPARTA.NEW - Third of the doc files for the new releases. Explains command line features for SpartaDOS users.›èåSpecial for SpartaDOS - Page £›========================›5. Special for SpartaDOS›========================››The new releases of TP have special command line features not enabled with other DOS packages. Due to a couple of requests for command line loading I have included a method for implementing it in these versions. Like a lot of things in TP, it isn't quite what was expected, but it works well and is a bit more flexible.››NOTE: Keys enclosed with <> are SELECT (inverse) keys.››-----------------------------›5.1. Command Line to LASTLOAD›-----------------------------››To command load a file you need a macro defined in your current TEXTPRO.MAC to load the SELECT-astload file automatically. The macro follows:››[macro key]<=>[CTRL-L][RETURN]››This can be defined to any key you choose. The macro defined to '@' runs automatically at startup. If you define this macro to the '@' key just type the following on the S-DOS command line to load the file at startup:››D#:TEXTPRO LOADFILE.TXT[RETURN]››Where the D#: is the S-DOS prompt.››Using Sparta-X the command will be››D#:X TEXTPRO LOADFILE.TXT[RETURN]››TP will send the filename to the LASTLOAD file buffer and the startup macro will load the file.››If you don't load a file every time you run TP and you don't want the startup macro trying to load NAME.ME every time use the second S-DOS option.››---------------------------------›5.2. Command Line Macro Selection›---------------------------------››TP will run a macro defined on the command line by the "@" key as the new startup macro. If you are also selecting a file to load this definition must precede the filename.››D#:X TP @! LOADFILE[RETURN]››The command line above used with Sparta-X will run the "!" macro at startup and push the following filename into the SELECT variable. This method allows you to select the operation you want performed on the file from the S-DOS command line.››If a selected macro is not defined nothing happens except replacement of the LASTLOAD variable.››The filename selected on the command line is placed into the LASTLOAD variable AFTER the default drive specifier. It should always be entered w/o a drive path in order to work properly.››-------------------------›5.3 Selecting a Full Path›-------------------------››The last option expands on the first two. If you want to enter a FULL PATHNAME for the file to retrieve precede the name with the ">" character as follows:››D#:X TP @" >D4:PATH>FILENAME.EXT[RETURN]››This selects the '"' macro to run and the FULL PATH of the new lastload variable. The most common use would be to have the '"' macro defined to load the file defined by a full pathname using the lowercase form of the LASTLOAD variable or the new SELECT

variable command. These return the full pathname to the command line. A maximum of 28 characters can be entered in the path/filename.››------------›5.4. Summary›------------››To summarize:››If you want to edit a NEW file for the default drive you should have no startup macro in your TEXTPRO.MAC file and load TP with››D#:X TP NEWFILE.EXT››For a full pathname instead of default drive››D#:X TP >D4:TEST>NEWFILE.EXT››To edit an existing file you should define a macro, let's say '!' to load the LASTLOAD variable and use››D#:X TP @! OLDFILE.EXT››For a full pathname instead of default drive››D#:X TP @" >D4:TEST>OLDFILE.EXT››Or load and perform any other operations that you like by calling other macros at startup using the '@' command line parameter.››/END/›››Ronnie Riche›1700 Aycock St.›Arabi, La. 70032›Nov 1989›