Home Dashboard Directory Help
Search

Get-Help Test-Path under RELATED LINKS lists Get-Content twice by JoeGCH


Status: 

Active


1
0
Sign in
to vote
Type: Bug
ID: 808359
Opened: 11/12/2013 9:17:17 AM
Access Restriction: Public
0
Workaround(s)
view
1
User(s) can reproduce this bug

Description

PS C:\Powershell> $psversiontable

Name                         Value
----                         -----
PSVersion                     4.0
WSManStackVersion             3.0
SerializationVersion         1.1.0.1
CLRVersion                     4.0.30319.34003
BuildVersion                 6.3.9600.16394
PSCompatibleVersions         {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion     2.2
PS C:\Powershell> update-help
PS C:\Powershell> get-help test-path

NAME
    Test-Path

SYNOPSIS
    Determines whether all elements of a file or directory path exist.


SYNTAX
    Test-Path [-Path] <String[]> [-Credential <PSCredential>] [-Exclude <String[]>] [-Filter <String>] [-Include
    <String[]>] [-IsValid] [-PathType <TestPathType>] [-UseTransaction [<SwitchParameter>]] [<CommonParameters>]

    Test-Path [-Credential <PSCredential>] [-Exclude <String[]>] [-Filter <String>] [-Include <String[]>] [-IsValid]
    [-PathType <TestPathType>] -LiteralPath <String[]> [-UseTransaction [<SwitchParameter>]] [<CommonParameters>]

    Test-Path [-NewerThan <DateTime>] [-OlderThan <DateTime>] [<CommonParameters>]


DESCRIPTION
    The Test-Path cmdlet determines whether all elements of the path exist. It returns TRUE ($true) if all elements
    exist and FALSE ($false) if any are missing. It can also tell whether the path syntax is valid and whether the
    path leads to a container or a terminal (leaf) element.
    In a file system drive, Test-Path can tell whether a path is valid, whether all elements of the path exist, or
    report whether a path leads to a file or a directory. It can also tell whether a file was changed before or after
    a particular date.

    Note: This custom cmdlet help file explains how the Test-Path cmdlet works in a file system drive. For information
    about the Test-Path cmdlet in all drives, type "Get-Help Test-Path -Path $null" or see Test-Path at
    http://go.microsoft.com/fwlink/?LinkID=113418.


RELATED LINKS
    Online version: http://technet.microsoft.com/library/hh847828(v=wps.630).aspx
    Test-Path (generic); http://go.microsoft.com/fwlink/?LinkID=113418
    FileSystem Provider
    Clear-Content
    Get-Content
    Get-ChildItem
    Get-Content
    Get-Item
    Remove-Item
    Set-Content
    Test-Path

REMARKS
    To see the examples, type: "get-help Test-Path -examples".
    For more information, type: "get-help Test-Path -detailed".
    For technical information, type: "get-help Test-Path -full".
    For online help, type: "get-help Test-Path -online"
Details
Sign in to post a comment.
Sign in to post a workaround.