JCL Help:GetVolumeSerialNumber

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the volume serial number for the specified drive.


Pascal

 function GetVolumeSerialNumber(const Drive: string): string;


Parameters

Parameters Description
const Drive: string The volume for which to retrieve the serial number. 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 serial number of the specified volume. If the function fails it returns an empty string.


Description

GetVolumeSerialNumber returns the serial number for 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