Modified Get-Path with additonal switch -Expand
* Added -Expand to Get-Path * Modified Edit-TextFile to utilize new -Expand switch
This commit is contained in:
parent
0e986cfaa7
commit
5dae2a2af5
2 changed files with 10 additions and 3 deletions
|
@ -23,7 +23,7 @@ if( $editor -match 'code(\.exe)?$' ) {
|
|||
}
|
||||
}
|
||||
|
||||
$local:arguments = $Path | Get-Path | Join-String -Separator "' '"
|
||||
$local:arguments = $Path | Get-Path -Expand | Join-String -Separator "' '"
|
||||
if( $Path ) { $arguments = "'$arguments'" }
|
||||
|
||||
if( $PSCmdlet.ShouldProcess( "Edit ($editor): $arguments" ) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue