MYDOS BatchFile Enhancement 1.7

MYDOS BatchFile Enhancement 1.7 (C) 1991 Torsten Karwoth

MyDos BFE 1.7 - Screenshot 01

MyDos BFE 1.7 – Screenshot 01

  • Requires MyDos 4.5x (not included)

Copyright (c) 1991 by Torsten Karwoth

Written for MyDOS, version 4.50

The Batchfile Enhancer must be copied into the rootdirectory of a Disk bootabe with MyDOS V4.50 (other versions of this superb DOS have not been tested). It must be named “AUTORUN.SYS”.
When booting such a Disk, the BfE will be loaded into the memory area $8000 to $8FFF and autorun after loading. First the BfE tries to open a Batchfile named “AUTOEXEC.BAT” and, if sucessed, to execute it`s commands. The AUTOEXEC.BAT is an ordinary Text file written with any kind of textprocessor.

Commands (Case sensitive!), optional parameters are shown in round brackets.

An @ will perform a ECHO OFF only for one Line!

– EXEC

EXEC gives the control to another batch file. An ECHO ON is performed.

– ECHO ON

ECHO ON will enable all commands to be displayed on the screen. Any command will be shown on the screen before executed.

– ECHO OFF

ECHO OFF will disable the commands to be displayed. If the ECHO is actual on, the ECHO OFF will be displayed BEFORE executed (all
commands). To disable display of “ECHO OFF” you should use “@ECHO OFF”

– ECHO (Text to Display)

ECHO displays the given Text. The Text must not start with “ON ” or “OFF “!

– MAKEDIR

MAKEDIR creates a new directory. may be “D:TEST” or “D1:T*>TEST2”. See MyDOS documentation.

– ASK FOR

ASK FOR wait for a key specified in to be pressed, or ESCape. An example will be shown later.

– IF ANSWER =

IF ANSWER compares and the last pressed key on ASK FOR. The next commands will be conditionally executed.

EXAMPLE 1:

ECHO Are you Sure (Y/N)?
ASK FOR YN
IF ANSWER = Y
ECHO Yes? Ok, it`s your Disk…
FORMAT DISK D1:
ENDIF

– IF EXIST

IF EXIST checks for the File to be present.

– IF NOT EXIST

EXAMPLE 2:

IF NOT EXIST D1:DOS.SYS
ECHO No DOS on disk!
ENDIF

– IF RAMDISK (-)

IF RAMDISK performs a test to ensure that a RAM Expansion (130XE-compatible) is fitted. This command tests also if MyDOS is configured (i.e.:The RAMDisk is available/accessable with a Drive-number). The optional parameter “-” disables the hardwaretest. This is for non-130XE-compatible RAM Expansions like Avalon!

– IF NOT RAMDISK (-)

EXAMPLE 3:

IF NOT RAMDISK – ; checks for Avalon type (no hardwaretest)
ECHO No RAMDisk available! Shit.
EXIT ; stop batch now.
ENDIF

– ENDIF

You have seen it in the examples. It`s build in to finish the conditional execution and returns to the next (higher) level.

– ELSE

ELSE reverse the actual condition on the stack (do you need an example???)

EXAMPLE 4:

ECHO Are you sure?
ASK FOR YN
IF ANSWER = Y
ECHO Are you really sure?
ASK FOR YN
IF ANSWER = Y
ECHO REALLY???
ASK FOR YN
IF ANSWER = Y
ECHO Whow! You`re really shure!
ELSE
ECHO Gourdhead! Why not?
ENDIF
ELSE
ECHO You are really not shure!
ENDIF
ELSE
ECHO Why do you tell me this?
ENDIF

– LOAD (Chan) (Q/L/I/R)

LOAD loads an binary file into memory. (Chan) is an optional number between 0 and 7. If an optional channel is given, the load will be performed on this channel. This is for programs that take self control by loading (such as Turbo-BASIC) and require to be loaded on channel 1! Example: LOAD D1:TURBOBAS.COM 1

Option Q,L,I or R can be given. Without option the file will be handled like the LOAD command in DUP.SYS

Q – Quit
Load a File (like DUP.SYS, i.e. executes INIT and RUN
vectors), but quits the Batchfile Enhancement after
returning from execution.

L – Load a file and ignores all INIT and RUN vectors.

I – Load a file and ignores the RUN vector, but perform INIT!

R – Load a file and RUN it, but ignores INIT!

– COPY (DstName)

COPY copies ONE file! is optional. The default for is “E:”

– TYPE (DstName)

TYPE is the same as COPY. But it is easier to read when TYPEing Textfiles instead of COPY it without …

– SETDIR

SETDIR ist used to set the default directory. These directorys can be accessed by using “D:” without drive number instead the full pathname! See MyDOS documentation for details.

– FORMAT DISK

FORMAT DISK formats a Disk IMMEDIATELY!

– LABEL

LABEL is for use with GOTO. is case sensitiv!

– GOTO

GOTO jumps to the specified label. Only forward references!

– STOP

STOP stops a Batchfile execution and goes in the direct command mode.

– DIR (DestName)

DIR shows the specified directory. If is given, the output will be redirected to the specified device.

– BUFFERS =

BUFFERS set the extra memory for all buffered actions (like copy, type, dir). The “normal” internal Buffer size is 50-60 bytes! The (umeric!) parameter (range 0-9) gives the size of extra memory in kilobytes, that starting at $9000 (behind the BfE Program). When BASIC is on, the maximum of extra buffer memory can only be 3 kilobytes ($9000-9BFF), because of screen memory at $9c00. When BASIC is off, 9 Kilobytes can be used as buffer.

This option has been included to access more buffer memory. You can set the buffer size to 2 KB when loading a program into $9800, otherwise it may be overwritten!

– INIT RAMDISK (U) (M)

INIT RAMDISK formats/initialises a RAMDisk and installs DUP.SYS on it! With the Option “U)pdate” the RAMDisk will only be formatted if the DUP.SYS in RAMDisk cannot be found (on 1st startup).
When the option “M)emSave” is given, a MEM.SAV file will be generated!

Note: You should use BUFFER to allocate extra buffer memory, because the DUP.SYS and MEM.SAV copy/generation process will take a long time with BUFFERS = 0!

– RAMDRIVE =

RAMDRIVE configures the internal MyDOS RAMDisk number. must be a value between 0 and 9 (0 disables a RAMDisk).

– BASIC OFF

BASIC OFF disables the Build-in BASIC and re-open the Editor!

– BASIC ON

BASIC ON enables the Atari-BASIC and re-open the Editor!

– LOCK

LOCK Write-protects all Files matching .

– UNLOCK

What do you think???

– DELETE

DELETE kills ALL Files matching !!!!

– RENAME ,

No comment… But: You MUST use the “,” in the parameter string!

– EXIT

EXIT leaves the BfE and jumps to BASIC or DUP menu.

– XCOPY (Q) (U)

XCOPY copys all Files matching into ! The source path is the actual directory (used with D:). means, that you must NOT use a drive specifier!!!!

EXAMPLE 5:

MAKEDIR RD:DESTINATION ; create a new directory
; “destinat.ion” in RAMDisk
SETDIR D2:SOURCES
XCOPY *.SRC RD:DESTINATION U

This batch creates a new directory called DESTINATION in the RAMDisk (in the BfE only, all Drive specification with “RD:”
will be replaced by “D” and the configured RAMDisk number). Then
it set the default directory, and copys all NEW files (matching to
D:*.SRC) into the directory DESTINATION on the RAMDisk!!!

Option U)pdate check for existing file in destination.

Option Q)uiet disables the messages from BfE (copying….).

Saddly XCOPY is not recursive, it don`t copy directorys.

– APPEND

The same function as COPY, but appending TO . will be unchanged.

– BASIC: (valid BASIC command line)

BASIC leaves the BFE and enters the build-in AtariBASIC, when enabled with BASIC ON. The given command line will be executed by BASIC.

EXAMPLE 6:

BASIC: GR.0:POS.16,10:PR.”Loading!”:RUN “MYPROG.BAS”

– ROMDRIVE = DriveNum , EPROMnum

This is a special command for use with the German EPROM card from DAVID.

EXAMPLE 7:

ROMDRIVE = 3 ; DriveNumber for ROM Disk is 3 (D3:)
ROMDRIVE = 4 , 0 ; DriveNumber is 4, EPROM 0 is selected
ROMDRIVE = , 4 ; DriveNumber is unchanged, EPROM 4 is selected

If you wish to use this command from a batchfile within a EPROM, you MUST copy the Batchfile in the RAMDisk and execute it from there, because you cannot change the EPROM- or ROM-DriveNumber without loosing the opened batch file.

– SET % =

must be a value from 0 to 9. You can use the Drive specifier “D%”, the “%” will be replaced by the actual Value for !

– SET % TO ANSWER

Like SET % = , but will be replaced by the last pressed key on a ASK FOR statement.

EXAMPLE 8:

ECHO format Disk 1,2 or 8
ECHO or press A to Abort!
ASK FOR 128A
IF ANSWER = A
ECHO nothing formatted!
ELSE
SET % TO ANSWER
ECHO Say bye-bye
FORMAT DISK D%:
ENDIF

– CLS

Clear Screen…


Single Density disk (ATR / 7-Zip): BatchFile enhancement 1.7 for MyDos

2 Responses

  1. Anonymous says:

    Good morning,

    I have tried your MYDOS BatchFile Enhancement 1.7 and I get always error: couldn’t access file or directory with a very short BAT file with content:
    SETDIR D3:DEMOS
    XCOPY *.* D2:DEMOS

    When I type these commands manually, all works fine.

    Thank you for reply.

    • Fox-1 says:

      I’m not a MyDos user myself but it did use this tool a really long time ago and all I know is that it worked for me.

Leave a Reply

Your email address will not be published. Required fields are marked *