Page 1 of 1

Adding custom dos applications

Posted: Tue Dec 18, 2007 2:52 pm
by paalg
Hi!

under \custom\dosapps i put my own DOS applications. I have noticed that the UBCD uses this code to boot DOS and choosing a DOS application to run after DOS bootdisk has booted:

Code: Select all

LABEL uata100
	MENU LABEL UATA100 V3.06 (Seagate)
	KERNEL memdisk
	APPEND initrd=/images/dosubcd.igz ubcdcmd=uata100
In the DOS application directory \dosapps\appname\ there is a file startup.bat for every dos application that runs.

How do I boot a DOS bootdisk and tell it to run one of my custom DOS applications in \custom\dosapps\appname?

I have not been able to find this information anywhere yet, so I end up asking here in the forum.

Paal

Posted: Sat Dec 22, 2007 5:41 am
by Victor Chew
Just create a subdirectory under \dosapps eg. "appname", then set "ubcdcmd=appname" in your menu file.

FreeDOS will change directory to \dosapps\appname, and run "startup.bat", so you can do whatever you need within \dosapps\appname\startup.bat to run the DOS EXE. Check out some of the other startup.bat files within the other DOS app subdirectories for some examples.