Mail Archives: djgpp/1997/09/28/19:07:18
At 07:54 9/27/1997 -0400, jb AT netcom DOT ca wrote:
>Hi,
>
>I was wondering, what code would I need to make a C program, perform DOS
>level functions?
>Such as: create a directory, copy files from disk drive to hard drive,
>delete files etc.
I'm not sure what you mean here. Most of these things have libc functions
associated with them. (For those you mention, try mkdir(), link() (sort of
cheating), and unlink().) You can invoke DOS prompt commands with system().
All these functions can be read about in the libc docs. If you want to get
to a lower level, use _dmpi_int() and read Ralf Brown's Interrupt List for
what functions are available and how to call them.
Hope this helps, let me know if I haven't answered your question.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -