8.5.31 GetVolumeLabel or GetVolLabel (get a disk volume label)
- Purpose
-
Gets the volume label of a disk.
- Syntax
GetVolumeLabel (DiskName [, FileSystemBuff]) GetVolLabel (DiskName [, FileSystemBuff])
- Arguments
-
- DiskName
-
Specify the disk volume as a character string or as a variable that stores this value. You can omit the colon (:).
- FileSystemBuff
-
Specify a variable for storing the acquired file system name (FAT, HPFS, NTFS, or other name). Omit this argument if not required.
- Description
-
The GetVolumeLabel or GetVolLabel command gets the volume label of the specified disk, and returns the label as the execution result.
If you specify a non-existent disk, the command returns a zero-length string ("").
- Example
Dim volName, fileSystem volName = GetVolumeLabel ("E:", fileSystem)
- JP1/Script version
-
Supported from JP1/Script 05-10.