How can I add BASIC commands to AUTOEXEC.BAT?

By AxelStone

Prophet (3199)

Аватар пользователя AxelStone

01-12-2019, 15:26

Hello everyone, I'd like to add some BASIC commands like SET ADJUST to my AUTOEXEC.BAT. Is there any way to do it? Thanks.

Для того, чтобы оставить комментарий, необходимо регистрация или !login

By gdx

Enlighted (6429)

Аватар пользователя gdx

01-12-2019, 15:35

You can make something like my Multi-Boot. (Use an AUTOEXEC.BAS instead of the AUTOEXEC.BAT)

https://www.msx.org/forum/msx-talk/software/multi-boot

By Grauw

Ascended (10820)

Аватар пользователя Grauw

01-12-2019, 15:38

There exists a tool which allows you to execute Basic commands from DOS. I just forgot the name.

By erpirao

Paragon (1334)

Аватар пользователя erpirao

01-12-2019, 16:28

search bascom.com,
a:\bascom set adjuts (7,7)

By fr3nd

Expert (112)

Аватар пользователя fr3nd

01-12-2019, 18:51

I think it's baskom.com, isn't it?
The tool is here: http://www.msxarchive.nl/pub/msx/utils/dos2/baskom.pma

I also added it to MSXHub. I think it's very handy :)

https://msxhub.com/BASKOM

By AxelStone

Prophet (3199)

Аватар пользователя AxelStone

01-12-2019, 19:17

Hello guys, finally I've applied a very simple solution: direct call to BASIC command of DOS. You can split your autoexec.bat in different files, and after the BASIC program continue executing whatever you want, something like this:
[AUTOEXEC.BAT]
...
BASIC config1.bas

And file config1.bas should be like:
[CONFIG1.BAS]
10 CLS
20 -- PERFORM MY BASIC COMMANDS --
30 _SYSTEM("config1.bat")

In config1.bat I apply specific config desired after the BASIC commands.

Thanks for your help!

By Grauw

Ascended (10820)

Аватар пользователя Grauw

01-12-2019, 19:20

Using baskom may execute faster though I think. It’s pretty neat.

By meits

Scribe (6571)

Аватар пользователя meits

01-12-2019, 22:12

I've heard of bascom but never tried it. I don't expect it to support everything you can do in basic, like a call for gr8net.
On top of that I wouldn't even want to begin with converting my basic booter to bascom cuz it's quite a monster with a for next loop and data lines Running Naked in a Field of Flowers

I reccon you've to load bascom for each command you want to perform, so after a while bascom would lose Tongue