Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Windows shortcut problem (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: [ANN] iBasic
Next thread: BinaryStream.writecolor?


Re: [OT- Soft of] Thread Hijacking   -   Rubber Chicken Software Co.
  Windows shortcut problem   -   jim meyer
   Re: Windows shortcut problem   -   Garth Hjelte
    Cocoa - Subclassed Menuitem Action Events Don't Fire(?)   -   Russ Tyndall
   Re: Windows shortcut problem   -   Michael Diehr
    Re: Windows shortcut problem   -   Jean-Luc Arnaud
   Re: Windows shortcut problem   -   Jean-Luc Arnaud

Windows shortcut problem
Date: 29.09.11 15:19 (Thu, 29 Sep 2011 10:19:07 -0400)
From: jim meyer
Hi....

I have run into a problem with Windows shortcuts.... when the shortcut is somewhere in the middle of the path. For example:

getfolderitem("c:\someFolder\aShortcut.lnk\finalFolder") returns nil... even though the path is ok.

getfolderitem("c:\someFolder\aShortcut.lnk") does resolve OK....

This does not seem to be a problem on Mac.... have not checked Linux yet....

Any one else run into this and found a good solution? Or am I going to have to write some recursive code to resolve this situation?

Jim
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Windows shortcut problem
Date: 29.09.11 19:16 (Thu, 29 Sep 2011 13:16:23 -0500)
From: Garth Hjelte
At 11:00 AM 9/29/2011, you wrote:

>Isn't that backwards? TrueChild will *not* resolve aliases... I
>think you want just plain .Child("")

That's right. Also, please look in the recent archives about calling
Child() on bad shortcuts that need special handling.

> > You should better use TrueChild method from FolderItem class, for example:
> >
> >
> MyFolderItem=GetFolderItem("c:\someFolder").TrueChild("aShortcut.lnk").Child("finalFolder")
> >
> >
> > HTH
> >
> > Jean-Luc Arnaud
> >
> > On 29/09/11 16:19, jim_meyer wrote:
> >> Hi....
> >>
> >> I have run into a problem with Windows shortcuts.... when the
> shortcut is somewhere in the middle of the path. For example:
> >>
> >> getfolderitem("c:\someFolder\aShortcut.lnk\finalFolder") returns
> nil... even though the path is ok.
> >>
> >> getfolderitem("c:\someFolder\aShortcut.lnk") does resolve OK....
> >>
> >> This does not seem to be a problem on Mac.... have not checked
> Linux yet....
> >>
> >> Any one else run into this and found a good solution? Or am I
> going to have to write some recursive code to resolve this situation?

Garth Hjelte
Sampler User

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Windows shortcut problem
Date: 29.09.11 17:00 (Thu, 29 Sep 2011 09:00:48 -0700)
From: Michael Diehr
Isn't that backwards? TrueChild will *not* resolve aliases... I think you want just plain .Child("")

On Sep 29, 2011, at 7:41 AM, Jean-Luc Arnaud wrote:

> You should better use TrueChild method from FolderItem class, for example:
>
> MyFolderItem=GetFolderItem("c:\someFolder").TrueChild("aShortcut.lnk").Child("finalFolder")
>
> HTH
>
> Jean-Luc Arnaud
>
> On 29/09/11 16:19, jim_meyer wrote:
>> Hi....
>>
>> I have run into a problem with Windows shortcuts.... when the shortcut is somewhere in the middle of the path. For example:
>>
>> getfolderitem("c:\someFolder\aShortcut.lnk\finalFolder") returns nil... even though the path is ok.
>>
>> getfolderitem("c:\someFolder\aShortcut.lnk") does resolve OK....
>>
>> This does not seem to be a problem on Mac.... have not checked Linux yet....
>>
>> Any one else run into this and found a good solution? Or am I going to have to write some recursive code to resolve this situation?
>>
>> Jim
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives:
>> <http://support.realsoftware.com/listarchives/lists.html>
>>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Windows shortcut problem
Date: 30.09.11 08:37 (Fri, 30 Sep 2011 09:37:32 +0200)
From: Jean-Luc Arnaud
What a stupid boy I am !!!

Of course, you're right, Michael.

I apologize, please read:

You should better use Child method from FolderItem class, for example:

MyFolderItem=GetFolderItem("c:\someFolder").Child("aShortcut.lnk").Child("finalFolder")

Jean-Luc

On 29/09/11 18:00, Michael Diehr wrote:
> Isn't that backwards? TrueChild will *not* resolve aliases... I think you want just plain .Child("")
>
> On Sep 29, 2011, at 7:41 AM, Jean-Luc Arnaud wrote:
>
>> You should better use TrueChild method from FolderItem class, for example:
>>
>> MyFolderItem=GetFolderItem("c:\someFolder").TrueChild("aShortcut.lnk").Child("finalFolder")
>>
>> HTH
>>
>> Jean-Luc Arnaud
>>
>> On 29/09/11 16:19, jim_meyer wrote:
>>
>>> Hi....
>>>
>>> I have run into a problem with Windows shortcuts.... when the shortcut is somewhere in the middle of the path. For example:
>>>
>>> getfolderitem("c:\someFolder\aShortcut.lnk\finalFolder") returns nil... even though the path is ok.
>>>
>>> getfolderitem("c:\someFolder\aShortcut.lnk") does resolve OK....
>>>
>>> This does not seem to be a problem on Mac.... have not checked Linux yet....
>>>
>>> Any one else run into this and found a good solution? Or am I going to have to write some recursive code to resolve this situation?
>>>
>>> Jim
>>> _______________________________________________
>>> Unsubscribe or switch delivery mode:
>>> <http://www.realsoftware.com/support/listmanager/>
>>>
>>> Search the archives:
>>> <http://support.realsoftware.com/listarchives/lists.html>
>>>
>>>
>>>
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives:
>> <http://support.realsoftware.com/listarchives/lists.html>
>>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Windows shortcut problem
Date: 29.09.11 15:41 (Thu, 29 Sep 2011 16:41:57 +0200)
From: Jean-Luc Arnaud
You should better use TrueChild method from FolderItem class, for example:

MyFolderItem=GetFolderItem("c:\someFolder").TrueChild("aShortcut.lnk").Child("finalFolder")

HTH

Jean-Luc Arnaud

On 29/09/11 16:19, jim_meyer wrote:
> Hi....
>
> I have run into a problem with Windows shortcuts.... when the shortcut is somewhere in the middle of the path. For example:
>
> getfolderitem("c:\someFolder\aShortcut.lnk\finalFolder") returns nil... even though the path is ok.
>
> getfolderitem("c:\someFolder\aShortcut.lnk") does resolve OK....
>
> This does not seem to be a problem on Mac.... have not checked Linux yet....
>
> Any one else run into this and found a good solution? Or am I going to have to write some recursive code to resolve this situation?
>
> Jim
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>