Are you using getfolderitem or gettruefolderitem? lnk is the correct 
extension, but if you use getfolderitem you actually are retrieving a 
pointer to the file referred to by the shortcut, not the shortcut 
itself. Which is why I ask.

Thanks,
Fargo

Art Peters wrote:
> Hi All,
>
> Two Windows questions:
>
> Does anyone have a method to delete shortcuts using RB? I've tried  
> 'sample' and 'sample.lnk' in a folderitem without success. I can  
> point to them but not delete them. Maybe the file extension is wrong  
> or there is something more to the designation of a shortcut. I always  
> thought they were treated simply as files.
>
>
> I would like to load a dll into the system folder using RB. The dll  
> is one I use with a program and works well when loaded into the  
> System folder manually. Each time I try to load it through RB I  
> receive several failed assertions from Windows concerning resolving  
> the functions in the dll. I have tried to load the dll into an RB  
> project window, create a binary file, write the held dll to the  
> binary file. This technique is very successful with exe files. But,  
> doesn't seem to work with dll's.
>
> As usual, any help will be appreciated.
>
> Art
> _______________________________________________
>   
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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

Reply via email to