< Back
Join-PSFPath
Post
NAME Join-PSFPath
SYNOPSIS
Performs multisegment path joins.
SYNTAX
Join-PSFPath [-Path] <String> [-Child <String[]>] [-Normalize] [<CommonParameters>]
DESCRIPTION
Performs multisegment path joins.
PARAMETERS
-Path <String>
The basepath to join on.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Child <String[]>
Any number of child paths to add.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Normalize [<SwitchParameter>]
Normalizes path separators for the path segments offered.
This ensures the correct path separators for the current OS are chosen.
Required? false
Position? named
Default value False
Accept pipeline input? false
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
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Join-PSFPath -Path 'C:\\temp' 'Foo' 'Bar'
Returns 'C:\\temp\\Foo\\Bar'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Join-PSFPath -Path 'C:\\temp' 'Foo' 'Bar' -Normalize
Returns 'C:\\temp\\Foo\\Bar' on a Windows OS.
Returns 'C:/temp/Foo/Bar' on most non-Windows OSes.
RELATED LINKS
SYNOPSIS
Performs multisegment path joins.
SYNTAX
Join-PSFPath [-Path] <String> [-Child <String[]>] [-Normalize] [<CommonParameters>]
DESCRIPTION
Performs multisegment path joins.
PARAMETERS
-Path <String>
The basepath to join on.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Child <String[]>
Any number of child paths to add.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Normalize [<SwitchParameter>]
Normalizes path separators for the path segments offered.
This ensures the correct path separators for the current OS are chosen.
Required? false
Position? named
Default value False
Accept pipeline input? false
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
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Join-PSFPath -Path 'C:\\temp' 'Foo' 'Bar'
Returns 'C:\\temp\\Foo\\Bar'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Join-PSFPath -Path 'C:\\temp' 'Foo' 'Bar' -Normalize
Returns 'C:\\temp\\Foo\\Bar' on a Windows OS.
Returns 'C:/temp/Foo/Bar' on most non-Windows OSes.
RELATED LINKS