FailSafe's Command File



How do I create my own command file?


Using a text editor, create a command file (anyname.ini) and place it within your projects folder.  It should include the following information in ths format:


Template = maximum.tpl

AddLineNums = 1

BackupBeforeProcessing = 1

OverWriteExisting = 0


RemLineNums = 1

RemFSFiles = 1

BackupBeforeProcessing = 1


File Count = 2

1 = D:\projects\main.frm

2 = D:\projects\mycode.bas


Option Description


The template FailSafe should use to instrument the project.

The default is maximum.tpl.


Set to 1 (True) or 0 (False). If True, FailSafe adds line numbers to your code.

The default is 1.


Set to 1 (True) or 0 (False). If True, FailSafe backs up files before

instrumenting them. If False, FailSafe does not back up files.

The default is 1.


Set to 1 (True) or 0 (False). If False, FailSafe does not enable error handling

In routines that already contain error handling code. If True, FailSafe

comments out existing error handlers and enables its own error handling

code in those routines. The default is 0.


Set to 1 (True) or 0 (False). If True, FailSafe removes line numbers when

removing instrumentation from your project. The default is 1.

RemFSFiles .

Set to 1 (True) or 0 (False). If True, FailSafe removes FailSafe.bas and

FailSafe.frm from the project when removing instrumentation. If False,

FailSafe removes instrumentation from your source code, but does not

remove the FailSafe modules from the project. The default is 1.

File Count

Specify the number of files to be processed. Specify all files to be

instrumented (or from which instrumentation should be removed) as

shown in the sample Files section above. You must include the full path

and file name for each file and assign numbers sequentially. By default,

FailSafe creates the Files section shown in the sample.

Old KB# 12156
Comment List
Related Discussions