ObjectDCL Banner

GetHardDriveSize Method

Description

This method will return the free disk size of the specified hard drive.

Parameters

Folder
String identifying a folder.

Return Values

Returns the following according to the situation:

  • A String indicating the free disk size
  • Nil if the drive is not found.

AutoLISP Syntax

The method takes no parameter.

CopyCode imageCopy Code
(Odcl_GetHardDriveSize 
		Folder [as String])

Example

CopyCode imageCopy Code
; Get the free disk space
(Setq rValue (Odcl_GetHardDriveSize "C:\My Documents\"))