www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/28/19:07:18

Date: Sun, 28 Sep 1997 15:03:22 -0700 (PDT)
Message-Id: <199709282203.PAA14892@adit.ap.net>
Mime-Version: 1.0
To: jb AT netcom DOT ca, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Dos level functions

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019