Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Windows PowerShell
- Copyright (C) 2009 Microsoft Corporation. All rights reserved.
- PS C:\Users\Kreton> D:
- PS D:\> cd Tap
- PS D:\Tap> cd cleansrc
- PS D:\Tap\cleansrc> cd English
- PS D:\Tap\cleansrc\English> ls -la
- Get-ChildItem : A parameter cannot be found that matches parameter name 'la'.
- At line:1 char:7
- + ls -la <<<<
- + CategoryInfo : InvalidArgument: (:) [Get-ChildItem], ParameterBindingException
- + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
- PS D:\Tap\cleansrc\English> ls -Force | Add-Member -Force -Passthru -Type ScriptProperty -Name Length -Value {ls $this -
- Recurse -Force | Measure -Sum Length | Select -Expand Sum } | Sort-Object Length -Descending | Format-Table @{label="Tot
- alSize(MB)";expression={[Math]::Truncate($.Length / 1MB)};width=14},@{label="Mode";expression={$.Mode};width=8}, Name?
- Missing ')' in method call.
- At line:1 char:254
- + ls -Force | Add-Member -Force -Passthru -Type ScriptProperty -Name Length -Value {ls $this -Recurse -Force | Measure
- -Sum Length | Select -Expand Sum } | Sort-Object Length -Descending | Format-Table @{label="TotalSize(MB)";expression={
- [Math]::Truncate( <<<< $.Length / 1MB)};width=14},@{label="Mode";expression={$.Mode};width=8}, Name?
- + CategoryInfo : ParserError: (CloseParenToken:TokenId) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : MissingEndParenthesisInMethodCall
- PS D:\Tap\cleansrc\English> ls -Force | Add-Member -Force -Passthru -Type ScriptProperty -Name Length -Value {ls $this -
- Recurse -Force | Measure -Sum Length | Select -Expand Sum } | Sort-Object Length -Descending | Format-Table @{label="Tot
- alSize(MB)";expression={[Math]::Truncate($.Length / 1MB)};width=14},@{label="Mode";expression={$.Mode};width=8}, Name
- Missing ')' in method call.
- At line:1 char:254
- + ls -Force | Add-Member -Force -Passthru -Type ScriptProperty -Name Length -Value {ls $this -Recurse -Force | Measure
- -Sum Length | Select -Expand Sum } | Sort-Object Length -Descending | Format-Table @{label="TotalSize(MB)";expression={
- [Math]::Truncate( <<<< $.Length / 1MB)};width=14},@{label="Mode";expression={$.Mode};width=8}, Name
- + CategoryInfo : ParserError: (CloseParenToken:TokenId) [], ParentContainsErrorRecordException
- + FullyQualifiedErrorId : MissingEndParenthesisInMethodCall
- PS D:\Tap\cleansrc\English>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement