Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <081a01c36106$f889e2f0$6c0aa8c0@adexainc.com>
From: "Rob" <rob2@siklos.ca>
To: <cygwin@cygwin.com>
Cc: "Tom Cyglist" <thcyglist@yahoo.com>
References: <Pine.GSO.4.44.0308111951280.7386-100000@slinky.cs.nyu.edu>
Subject: Re: Utility to dereference Windows shortcuts?
Date: Tue, 12 Aug 2003 15:21:45 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

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

I'm working on this.  The functionality is pretty much done and working, in
addition to cygutils integration.  Now I just have to make it presentable.

This will either be done in a couple days, or in a couple of weeks (getting
married this weekend).

If you want something basic that you can use in the meanwhile, I can post a
binary somewhere.

Rob Siklos.


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

