Running a .BAS program on DOSBOX

Having problems with a specific game or application? Post your problems here!

Running a .BAS program on DOSBOX

Postby Muzzlehatch » 2018-11-13 @ 22:31

Hi Everybody,

I am trying to run a gwbasic program using the DOSBOX.CONF file. I can get gwbasic started, but not get it to load or run a file using commands within the autoexec part of the DOSBOX.CONF file.

Its particularly frustrating cos I cracked this one ages ago, but the computer blew up and now I cant re-invent my wheel.

Any help would be gratefully received

Phil
Muzzlehatch
Newbie
 
Posts: 2
Joined: 2018-11-13 @ 22:18

Re: Running a .BAS program on DOSBOX

Postby ripsaw8080 » 2018-11-13 @ 22:37

Typically, you specify the .BAS file on the command line and the BASIC interpreter program will load and run it. Should work the same way in the [autoexec] section of the conf.

GWBASIC MYPROG.BAS
User avatar
ripsaw8080
DOSBox Author
 
Posts: 4362
Joined: 2006-4-25 @ 23:24

Re: Running a .BAS program on DOSBOX

Postby Muzzlehatch » 2018-11-13 @ 22:43

You Beauty!

I thought that I had tried that before (I must have tried a million variations), but gave it a go anyway and, of course, it works.

Thanks for saving my sanity!

Phil
Muzzlehatch
Newbie
 
Posts: 2
Joined: 2018-11-13 @ 22:18

Re: Running a .BAS program on DOSBOX

Postby Gene Wirchenko » 2018-11-20 @ 04:16

Muzzlehatch wrote:I am trying to run a gwbasic program using the DOSBOX.CONF file. I can get gwbasic started, but not get it to load or run a file using commands within the autoexec part of the DOSBOX.CONF file.


I am glad to see you got your problem solved. I still use BASIC for quick programs and utilities.

Have you considered using a BASIC compiler? Programs will run about ten times faster.

Do note that DOSBox is not guaranteed to work with non-game programs. The DOSBox authors are quite adamant on this point. In my experience of many years, it works fine, but it is not guaranteed. If this is an issue for you, you might want to try another emulator.

Sincerely,

Gene Wirchenko
Gene Wirchenko
Member
 
Posts: 144
Joined: 2005-7-14 @ 23:35
Location: Kamloops, BC, Canada


Return to DOSBox Games/Apps

Who is online

Users browsing this forum: knowledge [bot] and 2 guests