From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30160 invoked by alias); 12 Aug 2003 20:22:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 30141 invoked from network); 12 Aug 2003 20:22:28 -0000 Received: from unknown (HELO slinky.cs.nyu.edu) (128.122.20.14) by sources.redhat.com with SMTP; 12 Aug 2003 20:22:28 -0000 Received: from localhost (pechtcha@localhost) by slinky.cs.nyu.edu (8.11.7+Sun/8.11.7) with ESMTP id h7CKMR404236; Tue, 12 Aug 2003 16:22:27 -0400 (EDT) X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Tue, 12 Aug 2003 23:36:00 -0000 From: Igor Pechtchanski Reply-To: cygwin@cygwin.com To: Rob cc: cygwin@cygwin.com Subject: Re: Utility to dereference Windows shortcuts? In-Reply-To: <081a01c36106$f889e2f0$6c0aa8c0@adexainc.com> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-08/txt/msg00686.txt.bz2 On Tue, 12 Aug 2003, Rob 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 > > 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. Rob, Better post the source when it's ready... ;-) Until then, I believe people can make do with rudimentary tools, such as the "Shortcut Properties" feature of Windows Explorer. 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/