davidr@hplsla.HP.COM (David M. Reed) (02/16/91)
Whenever File Properies is run (or File New Program_item) one of the *.GRP files is modified with the information. 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? Yes, this is for auto-installation of programs so that when an application is installed on (or removed from) a user's system that an appropriage GRouP file can be modified by the installation program.
risto@tuura.UUCP (Risto Lankinen) (02/18/91)
davidr@hplsla.HP.COM (David M. Reed) writes: >Whenever File Properies is run (or File New Program_item) one of the *.GRP >files is modified with the information. 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. [some deleted] >Does such a program exist? Can it be used outside of MSWindows? Hi! If you've got the Windows SDK, look at the chapter 'Dynamic Data Exchange' in the book 'Guide to Programming'. From there you'll learn what you need in order to use the DDE interface of the Program Manager to do what you're attempting to. Terveisin: Risto Lankinen -- Risto Lankinen / product specialist *************************************** Nokia Data Systems, Technology Dept * 2 2 * THIS SPACE INTENTIONALLY LEFT BLANK * 2 -1 is PRIME! Now working on 2 +1 * replies: risto@yj.data.nokia.fi ***************************************
wolf@netcom.COM (Buckskin Tech.) (05/21/91)
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