home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
utils1
/
clipboot.arj
/
README.DOC
< prev
next >
Wrap
Text File
|
1993-05-04
|
9KB
|
173 lines
ClipBoot
Version 1.00
By Kevin S. Gallagher
ClipBoot is a utility that allows you to change your Autoexec.bat and
Config.sys files and optionally reboot your computer. It can be
operated either by command line or through the pop-up menu and editor.
Its purpose is to allow editing and swapping of the Autoexec.bat and
Config.sys files for individuals who utilize either multiple operating
systems or unique equipment that need different and perhaps
incompatible device drivers loaded at boot-up. Since DOS will allocate
a minimum of 2 to 4K cluster (depending on version) for each file,
regardless of how small it might be, it is wasteful to have several
small files in the root directory waiting to be renamed. It is also
time consuming to edit then save and finally reboot your system.
With ClipBoot, all of these tasks have been combined into one seemingly
program.
OPERATION
Command Line Parameters:
[Pseudoname] - A pseudoname is the descriptive name you provide for a
set of Autoexec.bat and Config.sys files. ClipBoot will search the
Qboot.dat file for this name, write the corresponding files to the root
directory of you C drive and reboot the computer. ClipBoot uses a pure
ascii file called Qboot.dat where it writes all of the descriptions and
corresponding data lines used by the program. When started, ClipBoot
will look for this file first in the default directory, (the one you
are in), next it looks in the environment for the variable
"QBOOT = [path]" don't forget to end the path with "\"; and finally it
looks in the root directory of the C drive. This way you can have
more than one Qboot.dat file if you wish, and can plan its operation
accordingly. If ClipBoot can NOT find this file, it will ask you if you
want to create a new QBOOT.Dat file. Answering Yes will take you into
the Edit Pseudoname screen and then to the editor, No will exit the
program. The new Qboot.dat file will be created in the root directory
of your C drive.
MENU/EDIT MODE
If Q-Boot is started without any command line parameters, the Menu will
appear with the Pseudonames appearing in a scrollable menu in the center
of the screen. A full line seperate description is displayed on the
bottom of the screen, and the active function/editing keys displayed on
line 24. ClipBoot checks your environment for QBOOTCON, this helps you
to remember what configuration you "current" have loaded. To use this
environment variable, place the following line in each of your
Autoexec.bat files: QBOOTCON=[name] where name is the word or words
describing this configuration. If this environment variable is NOT
found, ClipBoot displays "Not Entered". For those not familiar with
environment variables, I strongly suggest you check your DOS manual as
more and more programs make use of this area and it can make your life
much easier.
The active keys are:
Enter - to edit the Autoexec and Config files associated with that
Pseudoname. You can also change the name and description.
Insert - to create a NEW Pseudoname and corresponding files.
Delete - to delete the highlighted selection.
F3 - Go to the Environment Editor.
F10 - Select this PseudoName and Reboot (You will be prompted first)
Esc - Abort, return to DOS without booting or making any changes.
If you choose Insert or Enter, you will be taken to the second screen
where you enter/change the Pseudoname and its full description. The
only keys active in this screen are the enter and arrow keys. Pressing
enter on the Long description field takes you into the editor. The only
restrictions other than the obvious one of length is you MUST NOT use
the numbers 1 or 2 as the FIRST character in either the PseudoName or
its description or any of the lines in your Autoexec.bat or Config.sys
files. If you do,ClipBoot will NOT be able to accurately read your data
file. To read in the EXISTING Autoexec and Config files, press F10.
This is the simplest way to create a new set of files, especially if
you are only changing a few Parameters. If you have Manifest from
QuarterDeck Office Systems, then this feature will save you a lot of
typing after using OPTIMIZE to help you set up your files for the
different configurations.
It is here you can create/edit you Autoexec.bat and Config.sys files.
NOTE:
These files are swapped as a pair. If you leave one blank and save it,
then when this PseudoName is chosen, whichever file you left blank will
be written to disk as an empty file.
The editor is a simple memoedit that when pressing [F2] will save the
current files, or [ESC] to abort saves. Pressing [F10] toggles the
two files.
Environment Editor
From the main menu press [F3]
Since this program is not meant for novices, I will not try and give
an explanation of the Enviroment table or its uses. This feature loads
your current table into the editor and displays it for you to modify.
Once you have made any changes needed, press F10 and the program will
make changes if there are any to make. The [ESC] key aborts edits.
ONE FINAL WORD OF WARNING...
DO NOT use the Numbers 1 or 2 as the FIRST character of ANY LINE.
If you do, I can GUARANTEE ClipBoot will NOT work properly.
CREDITS:
ClipBoot was designed from another utility called Q-BOOT, which is why
the configuration file is called QBoot.dat
ClipBoot and QBoot both can work with QBoot.dat and the two (2) strings
QBOOTCON and QBOOT
Q-Boot was created in Quick basic, sometime around 1989 and works fine
except that after using the Environment editor Brief The Programmers
editor fails to work properly. Also Q-Boot has problems MS-Windows 3.1
smartDrv.exe - it does not write/swap files to disk, which I have
confirmed on (3) other systems. ClipBoot seems to work OKay, and if
you have any problems with it, I'd suggest changing the INKEY(n) value
from 1 to a higher number (increment by .25) until files write to disk.
This allows buffers to be written to disk, which is most likely the
source of the problem to why files do not get written to disk...
HOW TO MAKE CLIPBOOT:
I have gotten into the habit of setting up projects a little different
than the methods used by many other programmers. So you will need to
some pre work to utilize my "makefile".
The following is an example to follow for storing files in a project
directory:
1. MD C:\CLIPPROJ
2. MD C:\CLIPPROJ\INCLUDE
3. MD C:\CLIPPROJ\OBJ
4. MD C:\CLIPPROJ\SOURCE
5. MD C:\CLIPPROJ\LIB
6. Copy the ".prg" and ".c" files into c:\clipproj\source directory
7. Copy all header files ".h", into c:\clipproj\include directory
8. Copy the one (1) ".obj" files into c:\clipproj\obj directory
9. Copy the one (1) ".lib" file into c:\clipproj\lib directory
10. The makefile and linkfile should reside in c:\clipproj directory
11. Get out your programmers editor and edit all paths in the makefile
and linkfile, to point to your directories that you have the above
files (as per steps 1-5) in.
12. If you are not using Blinker 2.01, then you will need to tweak the
link script for your linker.
13. If you do not have a copy of Don Caton's Clipwarn.exe, replace the
utility with "Clipper", and remove from the RMake file -
the last two parameters in the FLAG macro "/log /beep"
14. Use RMake to create ClipBoot
NOTE: I have included a sample QBoot.dat file as an example.
*--------------------------------------------------------------------*
| ClipBoot |
| Requirements: |
| CA-Clipper version 5.2 |
| nanfor.lib version 2.1 |
| |
| The default linker is Blinker version 2.01 |
| There is a command line in the makefile that reads: |
| Lzexe ClipBoot |
| |
| This is for compressing the final .exe, and works with either |
| Warplink or Blinker 2.01, it is not required to do this. Note |
| PKlite.exe does the same job. |
| |
| I use an interface to CA-Clipper called Clipwarn by Don Caton and |
| if you do not have it, remove Clipwarn and insert Clipper.exe in |
| place of Clipwarn - also remove the last two (2) parameters in the |
| flags for compiling. |
*--------------------------------------------------------------------*