New file for winsup/utils

Joshua Daniel Franklin joshuadfranklin@yahoo.com
Wed Feb 20 14:13:00 GMT 2002


OK, here is a new util:

Usage mkshortcut.exe [OPTION]... TARGET 
NOTE: All filename arguments must be in unix (POSIX) format
  -a|--arguments=ARGS   use arguments ARGS 
  -h|--help             output usage information and exit
  -i|--icon             icon file for link to use
  -j|--iconoffset       offset of icon in icon file (default is 0)
  -n|--name             name for link (defaults to TARGET)
  -v|--version          output version information and exit
  -A|--allusers         use 'All Users' instead of current user for -D,-P
  -D|--desktop          create link relative to 'Desktop' directory
  -P|--smprograms       create link relative to Start Menu 'Programs' directory

For example:
./mkshortcut -a '-rv -e /bin/bash --login -i' -D /bin/rxvt
creates a shortcut to rxvt with bash login on the Desktop.

This will allow the creation of Windows shortcuts from scripts or batch
files. My goal is to include this in the cygwin package so that it can be
used from setup.exe to create the cygwin bash shortcuts (allowing the 
removal of mklink.c and much (more) of desktop.cc), and used from packages
to create shortcuts to executables, manuals, FAQs, websites, etc. Changelog:

2001-02-20 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>

* mkshortcut.c: new file, utility to create shortcuts from scripts
* utils.sgml: updated to include mkshortcut

--- Robert Collins <robert.collins@itdomain.com.au> wrote:
> 
> ===
> ----- Original Message ----- 
> From: "Joshua Franklin" <joshuadfranklin@yahoo.com>
> 
> > 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:
> 
> Why are you waiting? 
> 
> Rob
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mkshortcut.c
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020220/d4a7ac43/attachment.c>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020220/d4a7ac43/attachment.htm>


More information about the Cygwin-patches mailing list