< Back

Get-LongItem

Sun Jan 19, 2020 5:59 pm

NAME Get-LongItem



SYNOPSIS







SYNTAX

Get-LongItem [-Path] <String> [<CommonParameters>]





DESCRIPTION

The Get-LongItem cmdlet gets the item at the specified location and not the contents of the item at the location.





PARAMETERS

-Path <String>

Specifies the path to an item. Get-Item gets the item at the specified location. Wildcards are NOT permitted.

This parameter is required, but the parameter name ("Path") is optional.

Path may be relative or absolute



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

You can pipe a string that contains a path to Get-LongItem.









OUTPUTS

Alphaleonis.Win32.Filesystem.FileInfo

For more information see:

http://alphafs.alphaleonis.com/doc/2.0/ ... 08A5E5.htm









NOTES





Get-LongItem does not have a Recurse parameter, because it gets only an item, not its contents. To get the

contents of an item recursively, use Get-LongChildItem.



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-LongItem C:\\temp



This command gets the 'fileinfo' for the directory C:\\temp. The object that is retrieved represents only the

directory, not its contents.



RELATED LINKS