Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> drvcurget() / drvcurset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DrvCurGet() / DrvCurSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the current DOS drive.

 Syntax:
 lpszDrive = DrvCurGet()
 lpszDrive = DrvCurSet( lpszNewDrive )

 Parameters:
 lpszNewDrive The drive letter, range A - Z, & [,\,],^,_,.

 Returns:
 A character string of length 1.

 Description:
 DrvCurGet() returns the drive letter of the current DOS drive.

 DrvCurSet() makes lpszNewDrive the current drive and returns the
 previous current drive letter.

 Returns an empty string if an error occurs.

 Example:
 // To return the current drive:

 ? "The current DOS drive is " + DrvCurGet() + ":"

 // To set the current drive to H:

 lpszSaveDrive = DrvCurSet( "H" )
 ? "The current DOS drive is now " + DrvCurGet() + ":"

 Notes:
 CA-Clipper:

 The CA-Clipper SET DEFAULT TO command does not affect the current DOS
 drive, therefore the value returned by DrvCurSet() is not necessarily
 that of SET DEFAULT TO.

See Also: WSDrvNetGet() DrvNxtFreGet()

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