Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C Kernel, how do I execute external files!? 1

Status
Not open for further replies.

DevPortal

Programmer
Jul 8, 2005
40
US
I'm writing an OS, called SerpentOS. It will be booted from a floppy (with option to install to HDD). The bootable part is done, it boots into protected mode with A20 gate enabled, and starts a C kernel. Can someone supply me with some code to:

1. List files in a specific location.
2. Execute a file (.com, .exe, etc. (one type would be sufficient))

With these I intend to make two functions in the core of the kernel which will list contents of a directory you type, and execute a file you enter. This will provide very basic OS functionality, and I can then move on to add rename/delete/new functions, and then finally write programs for my own OS ^-^.

Thanks to whomever helpz..
~DevPortal
 
OK

I just ordered your kerny and richey

and if I dont become a master programmer in
one week you will give me my money back.

right ;-)

tomcruz.net

 
Ahh yes, but you're forgetting the power of the programming technique know as cut 'n' paste - this can drastically reduce the time taken to *write* a programme. (though you're in in deep water when it barfs, the boss says "whats wrong" and all you can muster is a "I don't know - I copied it off the interweb".
[rofl]

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
TrojanWarBlade"
I got four years to go, then Ill be dangerous.

tomcruz.net
 
I aint seen it on his site yet.
I probably could not make heads or tales of it but
I am curious.

TC

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top