			Documentation for StConfig.exe

1. What is StConfig?

Windows 95 introduced the notion of "hardware profiles", allowing the
system to recognize that there may be different hardware at different
times.  Laptops need this, for use on the road vs. in the docking
station at the office.

Unfortunately, while profiles allow tailoring of hardware related
settings, they do not provide a decent way to customize what
applications are started at system boot.  There are some primitive
ways to do this, but only through the AUTOEXEC.BAT file -- the use of
which is discouraged in Windows 95!

StConfig provides a very simple yet effective solution to this
problem.  You can run StConfig from your Startup folder, and set it up
to start a different set of applications for each of your profiles.
Since all this happens under Windows and not in the AUTOEXEC.BAT file,
this allows starting of any Windows application.

2. Setting up StConfig

2.1. Program installation

StConfig.exe is self-contained; it does not need any other files to
run.  You can put it in any directory you like.

2.2. Configuring your profile-dependent startup

StConfig operates in a very simple way.  When you run it, it looks in
the Windows registry for the name of the current hardware profile.
(This is what you see displayed under "Hardware profiles" in
"Properties" of "My computer".)  It looks in its working directory for
a subdirectory ("folder") of that same name.  It then goes through
that folder, starting everything it finds in there.  

So pick some place where you will store the folders that hold the
profile-dependent startup information.  (You can think of these as
analogous to the standard Windows "Startup" folder.)  You can put
these in the directory where StConfig.exe lives, but they can go
anywhere else you like. 

For each profile for which you want to define applications to start,
create a folder of that same name.  Then put into that folder whatever
you want started: shortcuts to your applications, the applications
themselves if you really want to do that, even documents to be opened.

For each profile for which you want to start nothing, either leave the
corresponding folder empty, or omit the folder for that profile
entirely.

Finally, put a shortcut to StConfig.exe into your Startup folder.  Set
the "Start in" entry under "Properties" for the shortcut to point to
the directory that contains your profile startup folders.

2.3 Example

Suppose you want to start Notepad each time you start your machine,
but only if it's undocked.  Suppose also you decided to put the
program and the profile folders in c:\Program Files\StConfig.  Here's
what you would end up with:

c:\Program Files\StConfig:
	StConfig.exe

c:\Program Files\StConfig\Undocked:
	shortcut to Notepad.exe

c:\Windows\Start Menu\Programs\Startup:
	shortcut to StConfig.exe
		(with its "start in" set to c:\Program Files\StConfig)

3. About this program

Copyright (c) 1997 by 3Com Corporation, Santa Clara, California.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

You can find a copy of the GNU General Public License in file
"Copying", which is included with this program.

3.1 How to reach the author

I can be reached via Email at pkoning@xedia.com; alternatively, 
at 119 Russell Street, Littleton, MA 01460

Comments or suggestions about this program would be appreciated.
