@VOLINFO

Windows Linux macOS

Syntax

@VOLINFO(<drive>, <information type flags>)

Description

This function returns information about the specified volume.

The information type flags may be:

F

amount of free space (Kb)

N

volume name (default)

S

total capacity (Kb)

T

type of volume:

  • Removable
  • Fixed
  • Network
  • CD-ROM
  • RAM

Y

file system (e.g. FAT32, NTFS)

Z

hard disk serial number

If more than one flag is specified, each item of information is separated by the current field separator character. The data can be stored in separate variables using the PARSE command.

Due to a bug in Windows 95, the F and S flags may return incorrect values for volumes larger than 2GB.

OK

Set to false if function fails

Example

rem find free space on D:
%E = @volinfo(D,F)

See also