delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/12/20:15:42

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
Message-ID: <3F10A435.3090504@pomona.k12.ca.us>
Date: Sat, 12 Jul 2003 17:13:41 -0700
From: Dan Mellem <dan DOT mellem AT pomona DOT k12 DOT ca DOT us>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Problem with dereference option on Windows LNKs (shortcuts)

Hi,

I have a folder that's full of shortcuts to other files (called 
'shortcuts'). I'd like to interact with the original files instead of 
the shortcut (.lnk) files. Basically, if the shortcut is created from 
within CYGWIN (ln -s [whether CYGWIN=nowinsymlinks or winsymlinks]), the 
command:

$ cp -LR shortcuts/ shortcuts2/

will copy the original files (dereferencing the symbolic links). 
However, if the shortcut was created in MS-Windows, all I get is a copy 
of the shortcuts. The only difference between the MS LNKs and the Cygwin 
ones that I see, besides file size/layout, is that all the shortcuts are 
read-only. Doing an ATTRIB +R * in the directory didn't make a difference.

This problem isn't specific to 'cp.' E.g., 'less' will work on an 'ln' 
shortcut but not a normal MS-Windows shortcut.

I'm using Cygwin v1.3.22 (Mar 18, 2003) on MS-Windows 2000.

Thanks for your help.

-Dan



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