This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How to change the file mode to link?


Larry Hall (Cygwin) wrote on Wednesday, June 03, 2009 1:38 PM:
> Peng Yu wrote:
>>> No.  Shortcuts created with Windows contain more and different
>                                                 ^^^^^^^^^^^^^^^^^^
>>> information than Cygwin symlinks.  If you need a symlink, create it
>>> under Cygwin.
>> 
>> If I am willing to loose the additional information, is there a way
>> to convert a windows link to a cygwin link?
> 
> Getting rid of the "additional information" addresses the "more" part
> above.  You need to handle the "different" part as well.  But why do
> all that work yourself when "ln -s" does it for you?  OK, let's make
> this question rhetorical. ;-)   

If for some reason the OP is going to do this so often that it needs to
be automated, one use readshortcut to pull the target for ln -s out of
the shortcut.  (See also mkshortcut.  They are in the cygutils package.)

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]