Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <5.1.0.14.2.20020219110748.027f2a20@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 19 Feb 2002 11:21:20 -0800 To: Roland Glenn McIntosh , cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: How to create a windows link in script? In-Reply-To: <5.1.0.14.2.20020219130336.05f0a8a0@lnxmain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Roland, Well, I was going to say this: If this is a one-off sort of thing, just use Windows Explorer (i.e., the Properties dialog) to set the icon on the ".lnk" file (shortcut) that results from invoking "ln -s ". However, I find that the resulting .lnk file won't allow the icon to be changed. I get an error alert when I try to "Apply" the changed icon ("Unable to save changes to gvi.lnk"; "Access is denied."). This is true even after I go to the Security pane of the link/shortcut's Properties dialog and enable "Full Control" and "Modify" permissions, apply them, close the dialog, come back in and try all over again. The permissions change "takes" but I still cannot set the icon. I wonder what's up here? This is an up-to-date Cygwin (1.3.9), NTFS file system and CYGWIN=ntsec. My BASH "umask" is 2, but I did a chmod 777 afterward (as well as interactively changing the permissions as I mentioned above). Can anybody clue me in on what's happening with this? Thanks. Randall Schulz Mountain View, CA USA At 10:07 2002-02-19, Roland Glenn McIntosh wrote: >I would like to be able to create a .lnk file to a batch file (and ideally >associate an icon with it) from a bash script on a Windows 2000 machine. > >Does anyone have any suggestions? > >I think "ln -s" used to work, but has since been improved? Anyway, this >does not provide the functionality for the icon. > >-rgm -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/