< Back

Join-DbaPath

Mon Jan 13, 2020 12:31 pm

NAME Join-DbaPath



SYNOPSIS

Performs multisegment path joins.





SYNTAX

Join-DbaPath [-Path] <String> [-Child <System.String[]>] [<CommonParameters>]





DESCRIPTION

Performs multisegment path joins.





PARAMETERS

-Child [<System.String[]>]

Any number of child paths to add.



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-Path [<String>]

The basepath to join on.



Required? false

Position? named

Default value

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-DbaPath -Path 'C:\\temp' 'Foo' 'Bar'



Returns 'C:\\temp\\Foo\\Bar' on windows.

Returns 'C:/temp/Foo/Bar' on non-windows.



RELATED LINKS