xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

DiskName()

Returns the current disk drive.

Syntax

DiskName() --> cDrive

Return

The return value is a single character specifying the current disk drive.

Description

The function is used to retrieve the drive letter of the current disk drive.

Info

See also:CurDrive(), CurDir(), DiskChange(), DiskSpace(), IsDisk()
Category: Directory functions , File functions
Source:rtl\dirdrive.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example queries and changes the current disk drive

   PROCEDURE Main
      ? DiskName()                     // result: C

      ? DiskChange( "D" )              // result: .T.

      ? DiskName()                     // result: D
   RETURN

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe