>
> Hallo Shay,
>
> thanks for stressing how Path-Join is designed.
>
> I was still thinking too pythonic.
>
> (GET-ITEM $FILENAME).FULLNAME
> transforms perfectly a given relative or absolute path into the absolut
> path.
>
> This helps my to start ISE with some files, load further files into ISE
> or switch the focus to some already loaded tab.
>
> 'See in: PowerShell Code Repository -' (
http://poshcode.org/757)>
> The current discoveries not yet included.
>
>
> 'Shay Levy [MVP Wrote:
>> ;922575']Hi Bernd,
>>
>> I don't know about Python but this is the way join-path work.
>> You are actually using join-path with positional parameters, as in:
>>
>>
>> PS > Join-path -path $pwd -childpath $profile
>>
>>
>> -childpath appends elements to the value of -path, you should provide
>> -childpath
>> with relative paths. It will also
>> remove any double leading path seperator characters:
>>
>>
>> PS > Join-path -path c:\ -childpath \foo
>> c:\foo
>>
>> # the same as above
>> PS > Join-path -path c:\ -childpath foo
>> c:\foo
>>
>> ---
>> Shay Levy
>> Windows PowerShell MVP
>> 'Shay Levy' (
http://blogs.microsoft.co.il/blogs/ScriptFanatic)>> PowerShell Toolbar: 'PowerShell at the tip of your browser - Shay Levy'
>> (
http://tinyurl.com/PSToolbar)>>
>>
>>
>> BK> I was just surprised to see that
>> BK> Join-path $pwd $profile
>> BK> yields
>> BK>
>> C:\Users\berndk\C:\Users\berndk\Documents\WindowsPowerShell\Microsof
>> BK> t.PowerShellISE_profile.ps1
>> BK> and doesn't recognize that $profile is an absolut path.
>> BK> I dare say that is an issue.
>> BK> or tell me a usecase where plain concatination is desired.
>> BK> Happy scripting
>> BK> Bernd
>
>
> --
> Bernd K