delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/19/19:59:52

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
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: How to create a windows link in script?
Date: Tue, 19 Feb 2002 16:58:42 -0800
Message-ID: <F8268126BF427A409936A83B6B863387050B43BF@red-msg-01.redmond.corp.microsoft.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: How to create a windows link in script?
Thread-Index: AcG5oloPnaNL3toFTty7KmNo0Xd71gABxbZQ
From: "Stephan Mueller" <smueller AT microsoft DOT com>
To: "Joshua Franklin" <joshuadfranklin AT yahoo DOT com>, <cygwin AT cygwin DOT com>
Cc: <roland AT steeltorch DOT com>, <rrschulz AT cris DOT com>
X-OriginalArrivalTime: 20 Feb 2002 00:58:42.0673 (UTC) FILETIME=[BDB93E10:01C1B9A9]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g1K0xpg11410

The Windows term for these things is 'shortcut'.  Perhaps you want to
call your tool mkshortcut?  Yeah, it's longer, but it's less ambiguous
than mklink.  There's already enough confusion between linking
executables from object modules and hard and symbolic links in the file
system.  Also, since the files created are .lnk files, mklink doesn't
immediately make one see the connection.  Perhaps mklnk would be more
accurate.

(And I haven't even had a chance to _look_ at the tool itself.

stephan();


-----Original Message-----
From: Joshua Franklin [mailto:joshuadfranklin AT yahoo DOT com] 
Sent: Tuesday, February 19, 2002 4:05 PM
To: cygwin AT cygwin DOT com
Cc: roland AT steeltorch DOT com; rrschulz AT cris DOT com
Subject: Re: How to create a windows link in script?


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

I've written a program that does just this. It's a
fully scriptable and can set icons. I'm 
hoping to get it included in cygwin sometime, but
I'm waiting until the new setup.exe comes out to 
bother developers with it. In the meantime, you can
get it at:

http://ns1.iocc.com/~joshua/mklink-0.1.tar.bz2

The archive is around 10K, source, (stripped) binary,
and some examples included. I'd also love some 
feedback on possible improvements--or from anyone on 
Win9x since I've got a setup like Randall's (Win2k, 
NTFS, etc.) The MS docs say it the calls should work 
on any windows, but you know...

I've not had any weird permission problems, though
figuring out whether folders on the Desktop exist only
for the current user or for all users can be tricky.

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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


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

- Raw text -


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