Skip to content

Get RelativePath

apobekiaris edited this page Sep 4, 2020 · 8 revisions

external help file: XpandPwsh-help.xml Module Name: XpandPwsh online version: schema: 2.0.0

Get-RelativePath

SYNOPSIS

Returns the relative path needed to move from one location to another.

SYNTAX

Get-RelativePath [[-fileName] <Object>] [[-targetPath] <Object>] [<CommonParameters>]

DESCRIPTION

Returns the relative path needed to move from one location to another.

EXAMPLES

Example 1

PS C:\> Get-RelativePath C:\Work\eXpandFramework\expand\Xpand.Plugins\Xpand.VSIX\Xpand.VSIX.csproj C:\Work\eXpandFramework\expand\Xpand\Xpand.Key\Xpand.snk

..\..\Xpand\Xpand.Key\Xpand.snk

Find the relative path of the Xpand.snk in relation to Xpand.VSIX.csproj

PARAMETERS

-fileName

{{ Fill fileName Description }}

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-targetPath

{{ Fill targetPath Description }}

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

image

image


Star the project if you think it deserves it.

GitHub stars

Fork the project to extend and contribute.

GitHub forks

Clone this wiki locally