JCL Help:GetVolumeName

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the name for the specified drive.


Pascal

 function GetVolumeName(const Drive: string): string;


Parameters

Parameters Description
const Drive: string The volume for which to retrieve the name. You must specify the root-directory of a drive (e.g. 'c:') or a full UNC name in which case you must follow it with an additional backslash.


Return Value

If the function succeeds it returns the name of the specified volume. If the function fails it returns an empty string.


Description

GetVolumeName returns the name of the specified volume. You may specify a volume (e.g. 'c:') or a UNC name.


About

Unit

JclSysInfo


Donator

John C Molyneux


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page