mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-18 05:05:36 +00:00
285 lines
25 KiB
XML
285 lines
25 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|||
|
|
<!-- *******************************************************************
|
||
|
|
These sample files contain formatting information used by the Windows
|
||
|
|
PowerShell engine. Do not edit or change the contents of this file
|
||
|
|
directly. Please see the Windows PowerShell documentation or type
|
||
|
|
Get-Help Update-FormatData for more information.
|
||
|
|
|
||
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
|
|
||
|
|
THIS SAMPLE CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
|
||
|
|
OF ANY KIND,WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
||
|
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
|
||
|
|
PURPOSE. IF THIS CODE AND INFORMATION IS MODIFIED, THE ENTIRE RISK OF USE
|
||
|
|
OR RESULTS IN CONNECTION WITH THE USE OF THIS CODE AND INFORMATION
|
||
|
|
REMAINS WITH THE USER.
|
||
|
|
******************************************************************** -->
|
||
|
|
<Configuration>
|
||
|
|
<SelectionSets>
|
||
|
|
<SelectionSet>
|
||
|
|
<Name>FileSystemTypes</Name>
|
||
|
|
<Types>
|
||
|
|
<TypeName>System.IO.DirectoryInfo</TypeName>
|
||
|
|
<TypeName>System.IO.FileInfo</TypeName>
|
||
|
|
</Types>
|
||
|
|
</SelectionSet>
|
||
|
|
</SelectionSets>
|
||
|
|
|
||
|
|
<!-- ################ GLOBAL CONTROL DEFINITIONS ################ -->
|
||
|
|
<Controls>
|
||
|
|
<Control>
|
||
|
|
<Name>FileSystemTypes-GroupingFormat</Name>
|
||
|
|
<CustomControl>
|
||
|
|
<CustomEntries>
|
||
|
|
<CustomEntry>
|
||
|
|
<CustomItem>
|
||
|
|
<Frame>
|
||
|
|
<LeftIndent>4</LeftIndent>
|
||
|
|
<CustomItem>
|
||
|
|
<Text AssemblyName="System.Management.Automation" BaseName="FileSystemProviderStrings" ResourceId="DirectoryDisplayGrouping"/>
|
||
|
|
<ExpressionBinding>
|
||
|
|
<ScriptBlock>
|
||
|
|
$_.PSParentPath.Replace("Microsoft.PowerShell.Core\FileSystem::", "")
|
||
|
|
</ScriptBlock>
|
||
|
|
</ExpressionBinding>
|
||
|
|
<NewLine/>
|
||
|
|
</CustomItem>
|
||
|
|
</Frame>
|
||
|
|
</CustomItem>
|
||
|
|
</CustomEntry>
|
||
|
|
</CustomEntries>
|
||
|
|
</CustomControl>
|
||
|
|
</Control>
|
||
|
|
</Controls>
|
||
|
|
|
||
|
|
<!-- ################ VIEW DEFINITIONS ################ -->
|
||
|
|
|
||
|
|
<ViewDefinitions>
|
||
|
|
<View>
|
||
|
|
<Name>children</Name>
|
||
|
|
<ViewSelectedBy>
|
||
|
|
<SelectionSetName>FileSystemTypes</SelectionSetName>
|
||
|
|
</ViewSelectedBy>
|
||
|
|
<GroupBy>
|
||
|
|
<PropertyName>PSParentPath</PropertyName>
|
||
|
|
<CustomControlName>FileSystemTypes-GroupingFormat</CustomControlName>
|
||
|
|
</GroupBy>
|
||
|
|
<TableControl>
|
||
|
|
<TableHeaders>
|
||
|
|
<TableColumnHeader>
|
||
|
|
<Label>Mode</Label>
|
||
|
|
<Width>7</Width>
|
||
|
|
<Alignment>left</Alignment>
|
||
|
|
</TableColumnHeader>
|
||
|
|
<TableColumnHeader>
|
||
|
|
<Label>LastWriteTime</Label>
|
||
|
|
<Width>25</Width>
|
||
|
|
<Alignment>right</Alignment>
|
||
|
|
</TableColumnHeader>
|
||
|
|
<TableColumnHeader>
|
||
|
|
<Label>Length</Label>
|
||
|
|
<Width>14</Width>
|
||
|
|
<Alignment>right</Alignment>
|
||
|
|
</TableColumnHeader>
|
||
|
|
<TableColumnHeader/>
|
||
|
|
</TableHeaders>
|
||
|
|
<TableRowEntries>
|
||
|
|
<TableRowEntry>
|
||
|
|
<Wrap/>
|
||
|
|
<TableColumnItems>
|
||
|
|
<TableColumnItem>
|
||
|
|
<PropertyName>Mode</PropertyName>
|
||
|
|
</TableColumnItem>
|
||
|
|
<TableColumnItem>
|
||
|
|
<ScriptBlock>
|
||
|
|
[String]::Format("{0,10} {1,8}", $_.LastWriteTime.ToString("d"), $_.LastWriteTime.ToString("t"))
|
||
|
|
</ScriptBlock>
|
||
|
|
</TableColumnItem>
|
||
|
|
<TableColumnItem>
|
||
|
|
<PropertyName>Length</PropertyName>
|
||
|
|
</TableColumnItem>
|
||
|
|
<TableColumnItem>
|
||
|
|
<PropertyName>Name</PropertyName>
|
||
|
|
</TableColumnItem>
|
||
|
|
</TableColumnItems>
|
||
|
|
</TableRowEntry>
|
||
|
|
</TableRowEntries>
|
||
|
|
</TableControl>
|
||
|
|
</View>
|
||
|
|
<View>
|
||
|
|
<Name>children</Name>
|
||
|
|
<ViewSelectedBy>
|
||
|
|
<SelectionSetName>FileSystemTypes</SelectionSetName>
|
||
|
|
</ViewSelectedBy>
|
||
|
|
<GroupBy>
|
||
|
|
<PropertyName>PSParentPath</PropertyName>
|
||
|
|
<CustomControlName>FileSystemTypes-GroupingFormat</CustomControlName>
|
||
|
|
</GroupBy>
|
||
|
|
<ListControl>
|
||
|
|
<ListEntries>
|
||
|
|
<ListEntry>
|
||
|
|
<EntrySelectedBy>
|
||
|
|
<TypeName>System.IO.FileInfo</TypeName>
|
||
|
|
</EntrySelectedBy>
|
||
|
|
<ListItems>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>Name</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>Length</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>CreationTime</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>LastWriteTime</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>LastAccessTime</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>Mode</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>LinkType</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>Target</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>VersionInfo</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
</ListItems>
|
||
|
|
</ListEntry>
|
||
|
|
<ListEntry>
|
||
|
|
<ListItems>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>Name</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>CreationTime</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>LastWriteTime</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>LastAccessTime</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>Mode</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>LinkType</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
<ListItem>
|
||
|
|
<PropertyName>Target</PropertyName>
|
||
|
|
</ListItem>
|
||
|
|
</ListItems>
|
||
|
|
</ListEntry>
|
||
|
|
</ListEntries>
|
||
|
|
</ListControl>
|
||
|
|
</View>
|
||
|
|
<View>
|
||
|
|
<Name>children</Name>
|
||
|
|
<ViewSelectedBy>
|
||
|
|
<SelectionSetName>FileSystemTypes</SelectionSetName>
|
||
|
|
</ViewSelectedBy>
|
||
|
|
<GroupBy>
|
||
|
|
<PropertyName>PSParentPath</PropertyName>
|
||
|
|
<CustomControlName>FileSystemTypes-GroupingFormat</CustomControlName>
|
||
|
|
</GroupBy>
|
||
|
|
<WideControl>
|
||
|
|
<WideEntries>
|
||
|
|
<WideEntry>
|
||
|
|
<WideItem>
|
||
|
|
<PropertyName>Name</PropertyName>
|
||
|
|
</WideItem>
|
||
|
|
</WideEntry>
|
||
|
|
<WideEntry>
|
||
|
|
<EntrySelectedBy>
|
||
|
|
<TypeName>System.IO.DirectoryInfo</TypeName>
|
||
|
|
</EntrySelectedBy>
|
||
|
|
<WideItem>
|
||
|
|
<PropertyName>Name</PropertyName>
|
||
|
|
<FormatString>[{0}]</FormatString>
|
||
|
|
</WideItem>
|
||
|
|
</WideEntry>
|
||
|
|
</WideEntries>
|
||
|
|
</WideControl>
|
||
|
|
</View>
|
||
|
|
<View>
|
||
|
|
<Name>FileSecurityTable</Name>
|
||
|
|
<ViewSelectedBy>
|
||
|
|
<TypeName>System.Security.AccessControl.FileSystemSecurity</TypeName>
|
||
|
|
</ViewSelectedBy>
|
||
|
|
<GroupBy>
|
||
|
|
<PropertyName>PSParentPath</PropertyName>
|
||
|
|
<CustomControlName>FileSystemTypes-GroupingFormat</CustomControlName>
|
||
|
|
</GroupBy>
|
||
|
|
<TableControl>
|
||
|
|
<TableHeaders>
|
||
|
|
<TableColumnHeader>
|
||
|
|
<Label>Path</Label>
|
||
|
|
</TableColumnHeader>
|
||
|
|
<TableColumnHeader />
|
||
|
|
<TableColumnHeader>
|
||
|
|
<Label>Access</Label>
|
||
|
|
</TableColumnHeader>
|
||
|
|
</TableHeaders>
|
||
|
|
<TableRowEntries>
|
||
|
|
<TableRowEntry>
|
||
|
|
<TableColumnItems>
|
||
|
|
<TableColumnItem>
|
||
|
|
<ScriptBlock>
|
||
|
|
split-path $_.Path -leaf
|
||
|
|
</ScriptBlock>
|
||
|
|
</TableColumnItem>
|
||
|
|
<TableColumnItem>
|
||
|
|
<PropertyName>Owner</PropertyName>
|
||
|
|
</TableColumnItem>
|
||
|
|
<TableColumnItem>
|
||
|
|
<ScriptBlock>
|
||
|
|
$_.AccessToString
|
||
|
|
</ScriptBlock>
|
||
|
|
</TableColumnItem>
|
||
|
|
</TableColumnItems>
|
||
|
|
</TableRowEntry>
|
||
|
|
</TableRowEntries>
|
||
|
|
</TableControl>
|
||
|
|
</View>
|
||
|
|
<View>
|
||
|
|
<Name>FileSystemStream</Name>
|
||
|
|
<ViewSelectedBy>
|
||
|
|
<TypeName>Microsoft.PowerShell.Commands.AlternateStreamData</TypeName>
|
||
|
|
</ViewSelectedBy>
|
||
|
|
<GroupBy>
|
||
|
|
<PropertyName>Filename</PropertyName>
|
||
|
|
</GroupBy>
|
||
|
|
<TableControl>
|
||
|
|
<TableHeaders>
|
||
|
|
<TableColumnHeader>
|
||
|
|
<Width>20</Width>
|
||
|
|
<Alignment>left</Alignment>
|
||
|
|
</TableColumnHeader>
|
||
|
|
<TableColumnHeader>
|
||
|
|
<Width>10</Width>
|
||
|
|
<Alignment>right</Alignment>
|
||
|
|
</TableColumnHeader>
|
||
|
|
</TableHeaders>
|
||
|
|
<TableRowEntries>
|
||
|
|
<TableRowEntry>
|
||
|
|
<TableColumnItems>
|
||
|
|
<TableColumnItem>
|
||
|
|
<PropertyName>Stream</PropertyName>
|
||
|
|
</TableColumnItem>
|
||
|
|
<TableColumnItem>
|
||
|
|
<PropertyName>Length</PropertyName>
|
||
|
|
</TableColumnItem>
|
||
|
|
</TableColumnItems>
|
||
|
|
</TableRowEntry>
|
||
|
|
</TableRowEntries>
|
||
|
|
</TableControl>
|
||
|
|
</View>
|
||
|
|
</ViewDefinitions>
|
||
|
|
</Configuration>
|
||
|
|
�
|