Re: How to change the file mode to link?
Buchbinder, Barry (NIH/NIAID) [E] wrote: Peng Yu wrote on Wednesday, June 03, 2009 10:17 PM: On Wed, Jun 3, 2009 at 4:45 PM, Mark Geisert wrote: Peng Yu writes: Is there such a cygwin command to extract the link from a windows link. Did you not see Barry's response on this thread? I missed it before I sent this message. Sorry. One more thing that you should be aware of: - The filename of a Windows shortcut is of the form . - The filename of a symbolic linkis of the form . So if you create the link in the same directory as the shortcut, you will clobber the shortcut. This is, of course, true by default with the current Cygwin release (1.5). In the next (1.7), the default changes so there is no worry of clobbering the Windows shortcut with "ln -s". Everybody likes a little trivia, right? ;-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How to change the file mode to link?
Peng Yu wrote on Wednesday, June 03, 2009 10:17 PM: > On Wed, Jun 3, 2009 at 4:45 PM, Mark Geisert wrote: >> Peng Yu writes: >>> Is there such a cygwin command to extract the link from a windows >>> link. >> >> Did you not see Barry's response on this thread? > > I missed it before I sent this message. Sorry. One more thing that you should be aware of: - The filename of a Windows shortcut is of the form . - The filename of a symbolic linkis of the form . So if you create the link in the same directory as the shortcut, you will clobber the shortcut. - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to change the file mode to link?
On Wed, Jun 3, 2009 at 4:45 PM, Mark Geisert wrote: > Peng Yu writes: >> Is there such a cygwin command to extract the link from a windows >> link. > > Did you not see Barry's response on this thread? I missed it before I sent this message. Sorry. Regards, Peng -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to change the file mode to link?
Peng Yu writes: > Is there such a cygwin command to extract the link from a windows > link. Did you not see Barry's response on this thread? ..mark -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to change the file mode to link?
On Wed, Jun 3, 2009 at 12:37 PM, Larry Hall (Cygwin) wrote: > 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. ;-) Suppose I have many links that are generated by windows already and I want to convert them to cygwin links. To use 'ln -s' I have to have a way to automatically figuring what the target of a window link, but how? Is there such a cygwin command to extract the link from a windows link. Regards, Peng -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
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.
Re: How to change the file mode to link?
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. ;-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to change the file mode to link?
> 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? Regards, Peng -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to change the file mode to link?
On Jun 2 09:46, Peng Yu wrote: > Hi, > > I create a link in windows. But cygwin does not show it as a link. I > am wondering if there is a command to correct it in cygwin? No. Shortcuts created with Windows contain more and different information than Cygwin symlinks. If you need a symlink, create it under Cygwin. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
How to change the file mode to link?
Hi, I create a link in windows. But cygwin does not show it as a link. I am wondering if there is a command to correct it in cygwin? -rwx--+ 1 Administrators None 1.2K Jun 1 11:42 some_file.lnk* Regards, Peng -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/