Selecting disk image/slot by the means of a CLI program

HxC Floppy Emulator on Amiga support
Post Reply
Yulquen74
Posts: 1
Joined: Mon Mar 16, 2026 7:54 pm

Selecting disk image/slot by the means of a CLI program

Post by Yulquen74 »

I would like to know if it is possible to create a small CLI tool for Amiga that makes it possible to select a disk image on the HxC SD card,
and then place it in a specified slot, opposed to using the autoboot disk to browse the SD card file tree and selecting a slot manually which is
the most common way to do it.

The reason I ask is it would be nice to be able to use another launcher, for different reasons (like AGS for example).

The premise is that the SD card image files and belonging paths is known on the Amiga side already, so a typical command to select a demo and put it into slot 10 could look like this:

selectimage "/1992/Spaceballs/State Of The Art/State of The Art.hfe" 10

Maybe it is not possible, if the interface does not support selection using those terms.

Is there some sort of api or documentation of how communication with the HxC works, with regards to programming something useful, or is it closed?

I would not mind having a go at it myself if possible.
Jeff
Site Admin
Posts: 8311
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Selecting disk image/slot by the means of a CLI program

Post by Jeff »

Yulquen74 wrote: Tue Mar 17, 2026 7:00 pm I would like to know if it is possible to create a small CLI tool for Amiga that makes it possible to select a disk image on the HxC SD card,
and then place it in a specified slot, opposed to using the autoboot disk to browse the SD card file tree and selecting a slot manually which is
the most common way to do it.

The reason I ask is it would be nice to be able to use another launcher, for different reasons (like AGS for example).

The premise is that the SD card image files and belonging paths is known on the Amiga side already, so a typical command to select a demo and put it into slot 10 could look like this:

selectimage "/1992/Spaceballs/State Of The Art/State of The Art.hfe" 10

Maybe it is not possible, if the interface does not support selection using those terms.

Is there some sort of api or documentation of how communication with the HxC works, with regards to programming something useful, or is it closed?

I would not mind having a go at it myself if possible.
This is possible, and i believe that this was already done on Amiga years ago.

The documentation :

https://hxc2001.com/download/floppy_dri ... s_mode.pdf

The file selector code source :
https://github.com/jfdelnero/HXCFE_file_selector
You probably can modify it to achieve what you want.
Post Reply