Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[ The Windows Gadget Platform/Sidebar is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. ]
Gets whether the object is a file.
This property is read-only.
Syntax
bisFileSystem = System.Shell.Item.isFileSystem
Property value
A Boolean that receives 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 [desktop apps only] |
| Minimum supported server |
Windows Server 2008 [desktop apps only] |
| End of client support |
Windows 7 |
| End of server support |
Windows Server 2008 |
| IDL |
|
| DLL |
|