This Windows batch/command file sets up the environment for using cm3 then launches Reactor, the browser-based IDE for cm3.
Randy Coleburn, Senior Systems Engineer, Scientific Research Corporation
2300 Windy Ridge Parkway, Suite 400 South, Atlanta, GA 30339Author grants free use/modification/distribution of this batch/command file to anyone.
Author does not warrant this batch/command file. Use at your own risk.I can't promise to maintain this software, but if you have a problem or suggestion, you are welcome to send me an email at rcoleburn@mindspring.com
I will try to respond in a timely manner.
You must be running WindowsNT4SP6, Windows2000, or Windows XP with command extensions enabled; otherwise, this command file will fail.
Store this command file in the bin directory of your cm3 installation. Place a shortcut to this command file on your desktop. Change the properties of this shortcut to run it in a minimized window.
The CM3SetupCmdEnv.CMD file, cm3.exe, and Reactor.exe must be in the bin directory of your cm3 installation. They are used by this command file.
This command file makes use of the CM3SetupCmdEnv.CMD file, which sets up the following five environment variables automatically:
CM3_ROOT is the root of the CM3 installation, typically "C:\cm3"
CM3_BIN is where the CM3 binaries are kept, typically "C:\cm3\bin"
CM3_PKG is the location of the public package repository, typically "C:\cm3\pkg"
CM3_DoneSetup indicates if this command file completed successfully.
REACTOR_HOME is where Reactor looks for the user's home folder.The following environment variables are used internally and are considered temporary:
CM3_SR_SavePrompt
CM3_SR_DefaultInstallRoot
Basic Usage:
startReactor [Help | Remarks | [Root [path]] [Home [path]]]
Optional Command Line Arguments:
HELP Display this summary of helpful information. HELP cannot be combined with other arguments. REMARKS Display useful remarks located at the beginning of this command file. REMARKS cannot be combined with other arguments. ROOT path The optional "ROOT" argument indicates you want to specify the cm3 installation root. The "path" argument also is optional, but if given, should be the path to the cm3 installation root. If the "path" argument is omitted, a default will be used (typically C:\cm3). The "ROOT path" option is useful if you have multiple cm3 installation roots (e.g., different versions) and you want to switch between them, or if your installation is not in the default location. HOME path The optional "HOME" argument indicates you want to specify the location of the Reactor home folder for this user. The "path" argument also is optional, but if given, should be the path to the home folder. If the "path" argument is omitted, a default will be used, typically "%USERPROFILE%\ReactorHome". All keyword arguments are case-insensitive.
Examples:
startReactor startReactor HELP startReactor REMARKS startReactor ROOT path startReactor ROOT startReactor ROOT path HOME path startReactor ROOT HOME path startReactor HOME path startReactor HOME startReactor HOME path ROOT path startReactor HOME ROOT path startReactor ROOT path HOME startReactor ROOT HOME startReactor HOME path ROOT startReactor HOME ROOT