TrFile_ListDisks (function reference)

By January 1, 2021January 26th, 2021Online Help, Troi File Plug-in
Troi File Plug-in for FileMaker Pro

TrFile_ListDisks

Lists the names of all currently available disks.

SyntaxFunction badge

TrFile_ListDisks ( switches )

Parameters

switches (optional) determine way the result is returned

Switches

Switches can be empty or:

-ReturnAtEnd add an extra return character after the last found item in the list

Returned Result

Data type returned

Text

Result

a list of names of all the disks that are currently mounted (available).

Originated in

Troi File Plug-in 2.0

Compatibility

FileMaker Pro 16 to 19

Considerations

Use FindFolder to find the startup disk.

Example

Set Field [ result ; TrFile_ListDisks ( "" ) ]

On Mac OS this will return a list of names of all the disks that are currently mounted, for example:

KES¶
SPOCK¶
Photos till 2004¶
Fotos tm 991115

On Windows the drive letters of the available disks are returned, for example:

A:¶
C:¶
D:¶
K:

Used in example file

DiskInfo.fmp12

Related functionsFunction badge

TrFile_DiskInfo
TrFile_FindFolder
TrFile_MountDisk

Related topics

Troi File Plug-in online help (overview)


Online Help Page for Troi File Plug-in for 16 to 19 –> TrFile_ListDisks (filep4253) 2021-0126 10:09:46