( Some help pages may not display correctly in html because those help pages may have sample codein them, part of which may be mis-interpreted as html tags.

All help pages, including this help page, are available in biterScripting with the help command. )

System Feature
startup
Purpose
The default script executed by biterScripting each time upon invocation
Aliases
None.
Syntax
Syntax for the script command applies.
The startup script is stored in file C:/Scripts/startup.txt
Arguments
None.
Stream Input
Stream for the script command applies.
Stream Output
Stream for the script command applies.
Stream Error
Stream for the script command applies.
Description
Each time biterScripting is invoked, the first thing it does is to
execute the startup script stored in the file name specified above.
The startup script is executed in both interactive and batch
(non-interactive) modes.
You can edit the startup script to include commands that you want biterScripting to
execute each time upon startup. These commands, typically, include
the common tasks you want performed, such as the following.
- Change the current directory to a specific directory.
- Declare, and set values of, the commonly used global variables.
- Declare the commonly used global functions.
- Any kind of logging, using the echo or echo -e command, you want performed.
The startup script file is created when biterscripting is installed. You can use
any text editor of your choice to edit the startup script file.
The startup script can call other (sub-)scripts. If the size of your startup script
is extensive, it is recommended that it be organized in terms of smaller, easier to manage,
sub-scripts.
Restrictions
If you declare variables or functions in the startup script, be sure to make them
global (with -g option). Otherwise, they will be treated as local to the script,
and will NOT be available outside of the startup script.
Valid Examples
The following are typical commands in the startup script file.
# Go to the directory you use the most.
ccd "C:/My Project"
# Declare variables you use commonly.
var -g str fileName
set $fileName = "My File.html"
# Declare functions you commonly use.
function -g int LineCount
# This function counts lines in all your source code files (for example).
.
... return ...
.
end
Invalid Examples
See help pages on individual command.
See Also
scriptvarfunctionccd