Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

I'm trying to make a batch file to match my Atari 8-bit emulator run slicker than it does now. I have Atari800 configured to run with Option held down (which disables basic) and most games run fine like that. However, some older games require an older OS to run (like Demon Attack or K-Star Patrol) and some require Basic to run (Escape from Epsilon) and a few require to boot from cassette (or even cassette and basic). Atari800 has command line parameters for all of these -- and the Tosec set (thankfully) contains info pertinant to all this right in the file names ([bASIC], [Req OsB], etc.)

I know how to do simple conditionals from the command line, but can't figure out how to use just part of a filename for a conditional.

Posted

I can save you some time too.

If you make a list:

[bASIC] Commandline= Atari.exe option1, option2, etc.

[Req OsB] Commandline= Atari.exe option1, option2, etc.

I will script it for you. It should be fairly simple. Give it some thought, and give me all the information I may need...

You know I don't think things through to the end, until the end that is. :)

I probably would have everything I need, if you export your config, and post it.

Posted
I can save you a bit of time. You cant do this via a batch file.

Yourll need a wrapper for this. Use something like AutoIt or AutoHotKey.

Seems to be possible via a batch file. The following works in any case:

if not exist temp md temp

del /q temp\*.*

copy %1 temp\

if exist temp\*[bASIC].* (

atari800 -basic -blt %1

) else (

atari800 -blt %1

)

Only does Basic or the absence of Basic for the present -- but now that I've wrapped my head around how to do it, the rest will be easy.

Guest
This topic is now closed to further replies.
×
×
  • Create New...