VDS Renaissance 的界面提供多种语言。官方文档以英语维护,以确保提供统一、一致且始终最新的参考。

@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