xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

Volume()

Sets the volume label of a disk.

Syntax

Volume( <cVolumeName> ) --> lSuccess

Arguments

<cVolumeName>
This is a character string starting with a drive letter, followed by a colon and the volume label of up to 11 characters. If the drive letter is omitted, the volume label of the current drive is set (eg: Volume( "A:Backup01" ) ).

Return

The function returns .T. (true) if the volume label could be set, otherwise .F. (false) is returned.

Note:  the function recognizes the CSetSafety() setting. It leaves the volume label unchanged when CSetSafety() returns .T. (true).

Info

See also:CSetSafety(), FileSeek(), GetVolInfo()
Category: CT:DiskUtil , Disks and Drives
Source:ct\disk.c
LIB:xhb.lib
DLL:xhbdll.dll


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