Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: From: "Fieldhouse, Dirk" To: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: Add context menus to shell scripts without extensions Date: Fri, 14 May 1999 22:54:05 +0100 X-Mailer: Internet Mail Service (5.5.2448.0) The normal Windows association mechanism relies on the extension of the file. If you want Windows to recognise your beautiful Cygwin shell scripts, you have to sully them with .sh extensions, or similar. Or do you? Rereading 'Inside OLE', I discovered that Windows can be made to recognise shell scripts from the initial '#!' characters and to associate such scripts with an appropriate program. This mechanism is overridden by an extension that has an association and it doesn't help in associating 'make' with files named Makefile - unfortunately that hook seems to be truly missing. Attached is a Windows .inf file that adds Open and Run context menu entries to shell scripts. This is a standard Windows text file that you can install using the Install entry on the context menu. It is supposed to set up an uninstall entry for itself. To install, first edit (eg with notepad) the file paths in the localisation section at the end of the file to set your preferred (\n-capable) editor and the location of your sh.exe. Then do right-click/Install. <> Warning: as always there is no guarantee that this software will work or indeed that it won't fry your machine. It has been tested on Windows 95 OSR2.1. In particular I'd be happy to hear from any brave NT user who succeeds or otherwise with this little hack (installing or using or both). Happy right-clicking. -- Dirk Fieldhouse Logica UK Limited fieldhouse AT logica DOT com 75 Hampstead Road c=gb;a=attmail;p=logica; London NW1 2PL o=LOGICA;ou1=UK;s=fieldhouse UK +44 (171) 637 9111 Not speaking for Logica begin 600 POSIXSH.INF M.R!#;W!Y2!W87D@#0H[('!R;W9I9&5D(&]N;'D@=&AA="!T:&ES(&YO=&EC92!I M2!T97-T960@;VX AT 5VEN9&]W49I;&5S(#T AT 4$]325A32"Y&:6QE7!E("T AT 9&]E&5C(%PB8"]B:6XO8WEG<&%T:"`M=2`G)25,)V!<(B(-"@T*.R!T#(S,C$])R,A)R!U;F1E7-S971U<"YD;&PL4V5T=7!) M;F9/8FIE8W1);G-T86QL06-T:6]N($1E9F%U;'15;FEN7!E7"5# M3%-)1"4-"@T*6U-T2!U=6ED9V5N M#0I#3%-)1#TB>S4U,3AB93 AT P+68P.#0M,3%D,BTX,C5D+36]U&4B#0H= ` end -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com