commands

^

Join-DbaPath

Author Friedrich Weinmann (@FredWeinmann)
Availability Windows, Linux, macOS

 

Want to see the source code for this command? Check out Join-DbaPath on GitHub.
Want to see the Bill Of Health for this command? Check out Join-DbaPath.

Synopsis

Performs multisegment path joins.

Description

Performs multisegment path joins.

Syntax

Join-DbaPath
    [-Path] <String>
    [-SqlInstance <DbaInstanceParameter>]
    [-Child <String[]>]
    [<CommonParameters>]

 

Examples

 

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.

Required Parameters

-Path

The basepath to join on.

Alias
Required True
Pipeline false
Default Value

Optional Parameters

-SqlInstance

Optional -- tests to see if destination SQL Server is Linux or Windows

Alias
Required False
Pipeline false
Default Value
-Child

Any number of child paths to add.

Alias ChildPath
Required False
Pipeline false
Default Value