Adding custom dos applications

Try looking for help here if you are having problems with the Ultimate Boot CD.

Moderators: Icecube, StopSpazzing

Locked
Message
Author
paalg
Posts: 4
Joined: Tue Dec 18, 2007 2:45 pm
Location: Molde, Norway

Adding custom dos applications

#1 Post by paalg » Tue Dec 18, 2007 2:52 pm

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

Victor Chew
Posts: 1368
Joined: Mon Feb 21, 2005 10:59 pm
Contact:

#2 Post by Victor Chew » Sat Dec 22, 2007 5:41 am

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.

Locked