User`s guide

7 Working with Target PC Files and File Systems
7-16
Use the method syntax to run an xpctarget.fs object method. The syntax
method_name(fs_object, argument_list) can be replaced with
fs_object.method_name(argument_list)
For example, to display the disk information for the C:\ drive,
1 If you have not already done so, in the MATLAB window, type the following
to assign the
xpctarget.fs object to a variable.
fsys=xpctarget.fs;
2 Type
fsys.diskinfo('C:\');
This returns disk information like the following for the C:\ drive file system.
ans =
Label: 'SYSTEM '
DriveLetter: 'C'
Reserved: ''
SerialNumber: 1.0294e+009
FirstPhysicalSector: 63
FATType: 32
FATCount: 2
MaxDirEntries: 0
BytesPerSector: 512
SectorsPerCluster: 4
TotalClusters: 2040293
BadClusters: 0
FreeClusters: 1007937
Files: 19968
FileChains: 22480
FreeChains: 1300
LargestFreeChain: 64349