![]() ![]() ![]() ![]() | Table Of Contents | Index |
GrpTyme is a utility to create and modify Windows GRP files used by Program Manager. It allows you to add programs, remove programs, or modify information. You can also create new groups from a text file that has a format like an INI file. On a network, GrpTyme can help automate the updating of thousands of GRP files saving a lot of time.
GrpTyme also has the ability to look into existing GRP files and write the information into a GNI file. This file is a text file much like an INI file, and can be manipulated with a variety of INI tools, such as our INITYME program, and then recompiled into a GRP file.
When using GrpTyme, the first thing you need to do is pass the file name parameters. Up to three names can be specified, two GRP files and one GNI file. The GRP files are the names of the binary Windows files, and the GNI file is the name of the text file that contains the change information. The reason to allow two GRP files it so that you can specify a different output file from the original GRP file. If you pass a name without and extension, GrpTyme assumes that the files are the names you passed with the GRP and GNI extensions.
After you pass your files, you then select what you want to do with them by using command line switches. The /D switch decompiles the GRP file and produces the GNI file. The /C switch compiles the GNI file producing the GRP file. The /M switch reads the GRP file and then reads the changes from the GNI file and applies those modifications and writes them to the GRP file. If two GRP files are specified, the file created is the second GRP name.
Example:A typical GNI file might look like this. The [Header] section controls global information about the group such as the Title, Location, and Size of the group window. The other sections are used to define or modify program items within the GRP file.
GRPTYME GAMES /D ;This command reads GAMES.GRP and creates GAMES.GNI
GRPTYME MAIN.GRP MAIN.GNI /C ;This command compiles MAIN.GNI into MAIN.GRP
GRPTYME MAIN.GRP MAIN.GNI /M ;This command reads MAIN.GRP and MAIN.GNI modifing MAIN.GRP
GRPTYME MAIN.GRP MAIN2.GRP MAIN.GNI /M ;This command reads MAIN.GRP and MAIN.GNI creating MAIN2.GRP
[Header] Title=Borland Pascal Rectangle=49 50 592 228 Location=21 369 Show=ShowMinimizedTo delete a program, put the command DEL in front of the program title. When modifing a GRP file, the DEL command removes the program from the group.[Borland Pascal] CommandLine=H:\BP7\BIN\BP.PIF IconPath=H:\BP7\BIN\BP.ICO WorkingDir=H:\BP7\BIN\ Location=21 72 ShortcutKey=$0650
[Solitaire] CommandLine=SOL.EXE
KeyWords Supported in [Header] Section:
Title= Sets the title of the group.
Rectangle=X Y W H Sets the size and location of the rectangle. If not specified, GrpTyme will select the size automatically.
Location=X Y Sets the location of the minimized group icon.
Show= This controls how the group will be displayed when ProgMan is started. This must be specified in the [Header] section. Valid parameters are:
Show=Hide Show=ShowNormal Show=ShowMinimized Show=ShowMaximized Show=ShowNoActivate Show=Show Show=Minimize Show=MinNoActivate Show=Na
The default is ShowMinimized.
KeyWords Supported in Program Items Sections:
CommandLine= Sets the name of the executable to run. This can be COM, EXE, BAT or PIF.
IconPath= Sets the name of the file that contains the icon. This can be an ICO file or stored in the EXE file.
WorkingDir= Sets the name of the directory to change to when the application is started.
Location=X Y Sets the location of the icon within the rectangle. If locations are not specified, GrpTyme will automatically arrange the icons.
ShortcutKey= This is the 16 bit hex code for the hot key for the application.
RunMin=Y If RunMin is set to Y then it will run Minimized.
Icon= In a file with more than one icon, this controls which icon will be used. The first icon is zero, and is the default.
Del [Borland Pascal]You can also delete groups by specifing the name of the EXE file.
Del BP7.EXEGroup modification commands can also be passed on the command line instead of command line can pass, but if you only need to make one change, it is easier than creating a GNI file.
To pass information on the command line you use the /L switch and use a semicolon ";" to separate what would normally be separate lines if you were using a GNI file.
GRPTYME GAMES /L Del [Solitaire] GRPTYME GAMES /L Del SOL.EXE GRPTYME GAMES /L [Header]; Title=MyGames GRPTYME BP7 /L [Borland Pascal]; ShortcutKey=$0650Whenever an existing GRP file is to be overwritten, GrpTyme makes a backup can restore the original file using the /R switch as follows:
GRPTYME MAIN /RIf you have the Computer Tyme DOS ToolBox or the Network Survival Kit, you can use these utilities with GrpTyme to change many GRP files at once.
To decompile all GRP files in one directory:
D *.GRP /F|DOLIST GRPTYME @L /DTo decompile all GRP files in all directories:
WHEREIS *.GRP|DOLIST GRPTYME @L /D
![]() ![]() ![]() ![]() | Table Of Contents | Index |
|