public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
To: Tom Cyglist <thcyglist@yahoo.com>
Cc: cygwin@cygwin.com
Subject: Re: Utility to dereference Windows shortcuts?
Date: Tue, 12 Aug 2003 01:27:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.44.0308111951280.7386-100000@slinky.cs.nyu.edu> (raw)
In-Reply-To: <20030811231338.77769.qmail@web80704.mail.yahoo.com>

On Mon, 11 Aug 2003, Tom Cyglist wrote:

> I understand that Windows shortcuts and symlinks are different and the
> reasons why they are different. However, I want to be able to process
> files pointed to by Windows shortcuts using Cygwin utilities. In order
> to be able to do this, I need a utility that will take a Windows
> shortcut name, xxx.lnk, and return either a Cygwin (preferred) or
> Windows path to the target of the shortcut. I could then do something
> like:
>
> cyg_utility `shortcut_deref win_shortcut.lnk`
>
> Does this utility exist? If not, does anyone have sufficient information
> on the Windows shortcut structure to allow me to write one?
>
> Thanks.

Take a look at the source of mkshortcut in the cygutils package.  If you
do write a "readshortcut" program, please consider submitting it to Chuck
Wilson for inclusion into the cygutils package (as a complement to
mkshortcut).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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/

  reply	other threads:[~2003-08-11 23:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-11 23:58 Tom Cyglist
2003-08-12  1:27 ` Igor Pechtchanski [this message]
2003-08-12 20:34   ` Rob
2003-08-12 23:36     ` Igor Pechtchanski
2003-09-18 17:20   ` Rob S.i.k.l.o.s.
2003-10-04 14:47   ` postgresql setup on cygwin --- initdb fails Terrence Brannon
2003-10-04 15:19     ` Jason Tishler
2003-10-04 16:08       ` Terrence Brannon
2003-10-04 16:10         ` Igor Pechtchanski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.44.0308111951280.7386-100000@slinky.cs.nyu.edu \
    --to=pechtcha@cs.nyu.edu \
    --cc=cygwin@cygwin.com \
    --cc=thcyglist@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).