System.Shell.Item.isFileSystem Property

Gets whether the object is a file.

This property is read-only.

Syntax

propVal = System.Shell.Item.isFileSystem()

  

Parameters

  • bFileSystem [out]
    Retrieves true if the item is a file; false otherwise.

Examples

The following example demonstrates how to determine whether an item is a file.

// --------------------------------------------------------------------
// Display the names of objects dropped on the gadget.
// --------------------------------------------------------------------
function GetItemFromDrop()
{    
    spFeedback.innerHTML = "Item(s) dropped.<br/>";
    var intIndex = 0;
    var oItem;
    var sItem;
    while(oItem = System.Shell.itemFromFileDrop(event.dataTransfer, intIndex))
    {
        // Display object properties and increment the index.
        sItem = "Other: ";
        if (oItem.isFileSystem == true)
        {
            sItem = "File: ";
        }
        if (oItem.isFolder == true)
        {
            sItem = "Folder: ";
        }
        if (oItem.isLink == true)
        {
            sItem = "Link: ";
        }
        spFeedback.innerHTML += sItem;
        spFeedback.innerHTML += oItem.name + "<br/>"; 
        
        intIndex++;
    }
}

Requirements

Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
DLL Sidebar.Exe version 1.00 or later

See Also

System.Shell.Item

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK