Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!netcomsv!wolf From: wolf@netcom.COM (Buckskin Tech.) Newsgroups: comp.windows.ms Subject: Re: GRP Modifying Program ? Message-ID: <1991May20.211503.16679@netcom.COM> Date: 20 May 91 21:15:03 GMT References: <3130053@hplsla.HP.COM> Organization: Netcom - Online Communication Services UNIX System {408 241-9760 guest} Lines: 25 davidr@hplsla.HP.COM (David M. Reed) writes: >While this could be built into >MSWindows, I suspect that there is some other program (perhaps in the >SYSTEM directory) that is actually invoked with appropriate parameters >to make these changes. I envision something along the lines of > wingrp /a main.grp "Command Prompt" "COMMAND.COM" "PROGMAN.EXE" 1 >which would add to the MAIN.GRP file an entry named "Command Prompt" which >would run the program "COMMAND.COM", and base its icon on the 1st entry >in the file "PROGMAN.EXE". I would expect that selecting File Delete for >a highlighted icon would invoke a command like > wingrp /d main.grp "Command Prompt" >to remove the appropriate entry. >Does such a program exist? Can it be used outside of MSWindows? No to both. Modification of .GRP files *is* built in to Program Manager. (actually, almost everything Windows does is "built-in" in this sense) Other programs can modify .GRP files by requesting that a change be made by Program Manager. This is how you can drag a program from the File Manager into a Program Manager group, and have it work properly. The actual mechanism is a rather tedious process involving DDE, but it can be done rather easily. Most Windows application installation programs do this. - Wolf