The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: SirEric on May 23, 2005, 10:30:05 PM

Title: EXEC PROG
Post by: SirEric on May 23, 2005, 10:30:05 PM
I need a simple code to execute a program such as an exe, com or even reg!
If any help could be given it would be appreciated :U

~SirEric
Title: Re: EXEC PROG
Post by: mnemonic on May 23, 2005, 10:58:09 PM
Hi SirEric,

welcome in here.

I never did something like that, but a search on google brought up some results that would be worth looking at.
Here it is: http://www.google.de/search?hl=de&q=dos+int+execute&meta=

Good luck & regards
Title: Re: EXEC PROG
Post by: MichaelW on May 23, 2005, 11:24:42 PM
Hi SirEric,

You would normally use Interrupt 21h, Function 4B00h, Load and Execute Program. See Ralf Brown's Interrupt list for more information.

An HTML version is here:

http://www.ctyme.com/rbrown.htm

And the download version here:

http://www-2.cs.cmu.edu/~ralf/files.html

EDIT: I removed the LoadExec structure and the initialization code to save Sluggy the trouble :bg
Title: Re: EXEC PROG
Post by: sluggy on May 24, 2005, 01:17:00 AM
Quote from: MichaelW on May 23, 2005, 11:24:42 PMEDIT: I removed the LoadExec structure and the initialization code to save Sluggy the trouble :bg

Thanks  :U :bg
Title: Re: EXEC PROG
Post by: SirEric on May 25, 2005, 03:02:10 AM
Thank you much for the replies!

I am workign on a prog for some friends to be able to do sum complicated regedits and file movements to hep them do some settign changes. Ill post it whn i am done...

Good luck,
SirEric