[Ecls-list] Symbolic LInks in Windows Vista?

Claus Brod claus.brod at googlemail.com
Fri Sep 11 05:55:01 UTC 2009


On Thu, Sep 10, 2009 at 11:20 PM, Claus Brod <claus.brod at googlemail.com>wrote:

>
>
> On Thu, Sep 10, 2009 at 11:08 PM, Seth Burleigh <seth at tewebs.com> wrote:
>
>>
>> I’m trying to load a symbolic link in windows vista. However, when I
>> probe-file, it returns nil.
>>
>> (probe-file “C:/Seth/random/libcl/_asdf/cl-markdown.asd”) ->nil
>>
>> (truename “C:/Seth/random/libcl/_asdf/cl-markdown.asd”) ->Debugger invoked
>>
>
> Which of the components in that path is a "symbolic link"? How exactly did
> you create it?
>


Seth sent me some additional information: The file cl-markdown.asd is the
link, and it's probably a Windows shortcut file.

Some thoughts:

   - The real filename is probably cl-markdown.asd.lnk (Windows Explorer
   hides the .lnk extension). Try something like (probe-file
   “C:/Seth/random/libcl/_asdf/cl-markdown.asd.lnk”)
   - .lnk files contain binary data which allow Windows to resolve the
   shortcut to the real file; you can't simply fopen() them (well, you can, but
   then you get the contents of the .lnk file, not the file it resolves to).
   Fortunately, the Windows shell provides support, in the form of COM
   interfaces like IShellLink and IPersistFile. If I remember correctly, this
   is what we used in our implementation of Common Lisp (
   http://www.clausbrod.de/cgi-bin/view.pl/Blog/DefinePrivatePublic20090620CommonLispInCoCreateModeling
   ).

Hope this helps,

  Claus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20090911/8724663d/attachment.html>


More information about the ecl-devel mailing list