Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>setdisk() set current disk drive</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 setdisk()               Set Current Disk Drive

 #include   <dir.h>

 int        setdisk(drive);
 int        drive;                       New drive

    setdisk() makes 'drive' (0 = A, 1 = B, etc.) the current disk drive.
    setdisk() corresponds to DOS function 0x0E.

       Returns:     The number of available drives, as defined in the
                    "lastdrive" command in config.sys or, if "lastdrive"
                    not specified, then the value 5, representing drives
                    A thru E.

   Portability:     MS-DOS only.


See Also: getcurdir() getdisk()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson