delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/11/19:53:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 11 Aug 2003 19:52:57 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Tom Cyglist <thcyglist AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Utility to dereference Windows shortcuts?
In-Reply-To: <20030811231338.77769.qmail@web80704.mail.yahoo.com>
Message-ID: <Pine.GSO.4.44.0308111951280.7386-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

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 AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019