This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How to create a windows link in script?

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

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


-----Original Message-----
From: Joshua Franklin [] 
Sent: Tuesday, February 19, 2002 4:05 PM
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:

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

Unsubscribe info:
Bug reporting:

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]