Export (0) Print
Expand All

CIM_LogicalFile class

The CIM_LogicalFile class represents a named collection of data, which can be executable code, that is located in a file system on a storage extent.

Important  The DMTF (Distributed Management Task Force) CIM (Common Information Model) classes are the parent classes upon which WMI classes are built. WMI currently supports only the CIM 2.x version schemas.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

[Provider("CIMWin32"), Abstract, UUID("{8502C4C4-5FBB-11D2-AAC1-006008C78BC7}"), CreateBy("Create"), SupportsDelete, DeleteBy("DeleteInstance")]class CIM_LogicalFile : CIM_LogicalElement
{
  uint32   AccessMask;
  boolean  Archive;
  string   Caption;
  boolean  Compressed;
  string   CompressionMethod;
  string   CreationClassName;
  datetime CreationDate;
  string   CSCreationClassName;
  string   CSName;
  string   Description;
  string   Drive;
  string   EightDotThreeFileName;
  boolean  Encrypted;
  string   EncryptionMethod;
  string   Extension;
  string   FileName;
  uint64   FileSize;
  string   FileType;
  string   FSCreationClassName;
  string   FSName;
  boolean  Hidden;
  datetime InstallDate;
  uint64   InUseCount;
  datetime LastAccessed;
  datetime LastModified;
  string   Name;
  string   Path;
  boolean  Readable;
  string   Status;
  boolean  System;
  boolean  Writeable;
};

Members

The CIM_LogicalFile class has these types of members:

Methods

The CIM_LogicalFile class has these methods.

MethodDescription
ChangeSecurityPermissions

Changes the security permissions for the logical file specified in the object path. Not implemented by WMI.

ChangeSecurityPermissionsEx

Changes the security permissions for the logical file specified in the object path. Not implemented by WMI.

Compress

Compresses the logical file (or directory) specified in the object path. Not implemented by WMI.

CompressEx

Compresses the logical file (or directory) specified in the object path. Not implemented by WMI.

Copy

Copies the logical file (or directory) specified in the object path to the location specified by the input parameter. Not implemented by WMI.

CopyEx

Copies the logical file (or directory) specified in the object path to the location specified by the input parameter. Not implemented by WMI.

Delete

Deletes the logical file (or directory) specified in the object path. Not implemented by WMI.

DeleteEx

Deletes the logical file (or directory) specified in the object path. Not implemented by WMI.

GetEffectivePermission

Determines whether the caller has the aggregated permissions specified by the Permission argument. Not implemented by WMI.

Rename

Renames the logical file (or directory) specified in the object path. Not implemented by WMI.

TakeOwnerShip

Obtains ownership of the logical file (or directory) specified in the object path. Not implemented by WMI.

TakeOwnerShipEx

Obtains ownership of the logical file (or directory) specified in the object path. Not implemented by WMI.

Uncompress

Uncompresses the logical file (or directory) specified in the object path. Not implemented by WMI.

UncompressEx

Uncompresses the logical file (or directory) specified in the object path. Not implemented by WMI.

 

Properties

The CIM_LogicalFile class has these properties.

AccessMask
Data type: uint32
Access type: Read-only

Bitmask that represents the access rights required to access or perform specific operations on the file. For bit values, see File and Directory Access Rights Constants.

Note  On FAT volumes, the FULL_ACCESS value is returned instead, which indicates no security has been set on the object.

Archive
Data type: boolean
Access type: Read-only

If True, the file should be archived.

Caption
Data type: string
Access type: Read-only

Short textual description of the object. This property is inherited from CIM_ManagedSystemElement.

Compressed
Data type: boolean
Access type: Read-only

If True, the file is compressed.

CompressionMethod
Data type: string
Access type: Read-only

Free-form string that indicates the algorithm or tool used to compress the logical file. If the compression scheme is unknown or not described, use "Unknown". If the logical file is compressed, but the compression scheme is unknown or not described, use "Compressed". If the logical file is not compressed, use "Not Compressed".

CreationClassName
Data type: string
Access type: Read-only

Name of the class.

CreationDate
Data type: datetime
Access type: Read-only

Date and time of the file's creation.

CSCreationClassName
Data type: string
Access type: Read-only

Class of the computer system.

CSName
Data type: string
Access type: Read-only

Name of the computer system.

Description
Data type: string
Access type: Read-only

Textual description of the object. This property is inherited from CIM_ManagedSystemElement.

Drive
Data type: string
Access type: Read-only

Drive letter (including the colon that follows the drive letter) of the file. This property is inherited from CIM_LogicalFile.Example: "c:"

EightDotThreeFileName
Data type: string
Access type: Read-only

DOS-compatible file name. Example: "c:\progra~1"

Encrypted
Data type: boolean
Access type: Read-only

If True, the file is encrypted.

EncryptionMethod
Data type: string
Access type: Read-only

Free-form string that identifies the algorithm or tool used to encrypt a logical file. If the encryption scheme is not indulged (for security reasons, for example), use "Unknown". If the file is encrypted, but either its encryption scheme is unknown or not disclosed, use "Encrypted". If the logical file is not encrypted, use "Not Encrypted".

Extension
Data type: string
Access type: Read-only

File name extension without the preceding period (dot). Example: "txt", "mof", "mdb"

FileName
Data type: string
Access type: Read-only

File name without the file name extension. Example: "MyDataFile"

FileSize
Data type: uint64
Access type: Read-only

Size of the file, in bytes.

For more information about using uint64 values in scripts, see Scripting in WMI.

FileType
Data type: string
Access type: Read-only

Descriptor that represents the file type indicated by the Extension property.

FSCreationClassName
Data type: string
Access type: Read-only

Class of the file system.

FSName
Data type: string
Access type: Read-only

Name of the file system.

Hidden
Data type: boolean
Access type: Read-only

If True, the file is hidden.

InstallDate
Data type: datetime
Access type: Read-only

Date and time the object was installed. This property does not need a value to indicate that the object is installed. This property is inherited from CIM_ManagedSystemElement.

InUseCount
Data type: uint64
Access type: Read-only

Number of "file opens" that are currently active against the file.

For more information about using uint64 values in scripts, see Scripting in WMI.

LastAccessed
Data type: datetime
Access type: Read-only

Date and time the file was last accessed.

LastModified
Data type: datetime
Access type: Read-only

Date and time the file was last modified.

Name
Data type: string
Access type: Read-only

Inherited name that serves as a key of a logical file instance within a file system. Full path names should be provided. This property is inherited from CIM_ManagedSystemElement. Example: "C:\Windows\System\win.ini"

Path
Data type: string
Access type: Read-only

Path of the file including the leading and trailing backslashes. Example: "\windows\system\"

Readable
Data type: boolean
Access type: Read-only

If True, the file can be read.

Status
Data type: string
Access type: Read-only

Current status of the object. This property is inherited from CIM_ManagedSystemElement.

Values are:

"OK"
"Error"
"Degraded"
"Unknown"
"Pred Fail"
"Starting"
"Stopping"
"Service"
"Stressed"
"NonRecover"
"No Contact"
"Lost Comm"
System
Data type: boolean
Access type: Read-only

If True, the file is a system file.

Writeable
Data type: boolean
Access type: Read-only

If True, the file can be written.

Remarks

The CIM_LogicalFile class is derived from CIM_LogicalElement.

WMI does not implement this class. For classes derived from CIM_LogicalFile, see Win32 Classes.

This documentation is derived from the CIM class descriptions published by the DMTF. Microsoft may have made changes to correct minor errors, conform to Microsoft SDK documentation standards, or provide more information.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

 

 

Show:
© 2014 Microsoft