Batch File Compiler Professional Edition v4.5
Batch File Compiler Professional Edition will flawlessly compile any batch file you throw at it!
The Advanced version of BFC PE includes very useful extended commands which are not available in normal batch files.
BFC PE ADVANCED Extended Commands Index
Functions listed in RED are not included in the
trial version.
Please pass integer values for FGcolor and BGcolor (foreground and
background colors.)
For a list of integer color values, compile batch file Example #1
HideSelf
ShowSelf
LessThan (Num1 Num2)
GreaterThan (Num1 Num2)
Locate (Y X)
PaintScreen (BGcolor)
ChangeColor (FGcolor BGcolor)
ClearColor
PrintColor (Text FGcolor BGcolor)
PrintCenter (Text Y FGcolor BGcolor)
PrintReturn
PrintBox (Height Width Type)
Add (Num1 Num2)
Subtract (Num1
Num2)
Multiply (Num1 Num2)
Divide (Num1 Num2)
LimitDecimal (DecimalNumber
DecimalLimit)
MakeInteger(DecimalNumber)
GetInput
GetLength
(Text)
GenRandom (MaxInteger)
MakeUpper
(Text)
MakeLower (Text)
Wait (Milliseconds)
NOTE - The Extra Functions do NOT work for DOS compiled executables.
Extended Functions Usage
Put a REM statement in front of the function:
REM PrintColor This text will be printed in red with a white background 4
15
TIPS - Do NOT use parenthesis ( ) in the statement. They are used here for clarity.
Extended Functions are
space-sensitive. Only put one space between REM and the function you would like
to use.
- HideSelf
Allows the compiled batch file window to go invisible and run in the
background
Can be used to go invisible while copying files then reappear when complete
for example
Be sure not to use any commands that may require user input while the
compiled batch file is hiding
- ShowSelf
Allows the compiled batch file window to reappear after going
invisible
- LessThan (Num1 Num2)
If Num1 <= Num2 (Less than or equal to) returns 1
if true and a 0 if false in the variable %result%
- GreaterThan (Num1 Num2)
If Num1 >= Num2 (Greater than or equal to) returns 1
if true and a 0 if false in the variable %result%
- Locate (Y X)
Moves the cursor Y number of spaces up and down and X number of
spaces left and right from the top left corner.
- PaintScreen (BGcolor)
Paints the screen the selected integer background color.
- ChangeColor (FGcolor BGcolor)
Changes the color text will be printed on the screen.
Use integer values 0-15 for the colors. 0 = black, 1 =
blue, etc...
- ClearColor
Changes the color text will be printed on the screen back to
normal ( FG7 BG0 ).
- PrintColor (Text FGcolor BGcolor)
Prints text on the screen with the specified colors without printing a Return after.
- PrintCenter (Text Y FGcolor BGcolor)
Prints one centered line of text on the screen with the specified colors in the row Y (1 - 25).
- PrintBox (Height Width Type[1 or 2])
Prints a box centered on the screen with the specified border type.
- PrintReturn
Moves cursor down a line
- Add (Num1 Num2)
Adds two numbers and returns the result in the variable %result%
- Subtract (Num1 Num2)
Subtracts Num2 from Num1 and returns the result in the
variable %result%
- Multiply (Num1 Num2)
Multiplies two numbers and returns the result in the variable
%result%
- Divide (Num1 Num2)
Divides Num1 by Num2 and returns the result in the variable %result%
- LimitDecimal (DecimalNumber X)
Limits the DecimalNumber to X number decimal places and
returns the result to the variable %result%
- MakeInteger (DecimalNumber)
Makes the DecimalNumber an integer and returns the result in
the variable %result%
- GetInput
Lets the user type input and returns the result in the
variable %result%
- GetLength (Text)
Returns the length of text in the integer variable %result%
- GenRandom (MaxInteger)
Generates a random integer no larger than MaxInteger and
returns the number in the variable %result%
- MakeUpper (Text)
Makes the text all uppercase and returns the text in the
variable %result%
- MakeLower (Text)
Makes the text all lowercase and returns the text in the
variable %result%
- Wait (Milliseconds)
Waits the specified number of milliseconds before continuing.
Tips for using Batch File Compiler Professional Edition
- While editing your batch files you will notice the code changing colors when using the
extra (extended) commands:
GREEN for REM *Comments
ORANGE for GOTO and :Labels
BLUE for commands spelt properly and with
the correct amount of options (or arguments) used
RED (errors) commands without the correct number of options
GRAY for extended commands not included in
the demo
- Please note BFC PE adds color keys based on the number or arguments entered after an
extra command. BFC PE does NOT check for the correct data type.
- Open and look through the example batch files included in the BFC PE install folder.
- When using an extended command, put a REM statement in front of the function like the
example below:
REM PrintColor This text will be printed in red with a
white background 4 15
NOTE - If you don't use a REM statement, the extended command will not work
properly and if you save to a batch file, the batch file will cause errors.
- To add a comment in the batch file, use a REM statement
- Be sure not to use any commands that may require user input while the compiled batch
file is hiding
- Use PrintColor in Windows98 and Millenium Edition as ChangeColor and ClearColor only work for
WinNT/2000/XP/Vista.
- PrintColor does not print a "return" after it prints
to the screen. This is so you can print more than one color on a line without having to
use Locate. Simply use PrintReturn to
start at the next line.
- Use ChangeColor when using PaintScreen
to change the text background color same background color
- Batch file windows are 80 spaces in width and 25 spaces in height.
- To close the window when a batch file finishes executing, simply put a CLS (clear
screen) statement at the end of the batch file.
- If the windows closes before you can see any text on the screen, put a PAUSE (press any
key to continue) statement at the end of the batch file.
User Agreement
Brandon Dargo cannot be held responsible for any damages to you ("The Software User")
or to your equipment or any other damages by using this program ("Batch File Compiler
Professional Edition"). You may distribute the BFC PE FREE installer anywhere you wish. The registered
BFC PE Advanced full version installer may NOT be distributed ANYWHERE.
When you register for a BFC PE Advanced license, it grants YOU the permission to use the full version of the software.
The compiled batch files created with the registered full version package may be distributed to anyone, anywhere royalty free.
You may NOT allow other users who do not have a license, to use the software. Doing so will be a violation of the
User Agreement. You will lose permission to use the software and receive free upgrades to future versions.
You may NEVER distribute a modified version of this software package under any circumstances.
If you distribute a modified version of this software package you will be violating U.S.
copyright laws, will be prosecuted, and may face additional civil penalties. If you do not
agree to or understand this User Agreement, then you may not use this software package and
must uninstall and delete immediately.
Batch File Compiler Copyright © 2000-2009 Brandon Dargo
Batch File Compiler Professional Edition Copyright © 2003-2009 Brandon Dargo
Why Register?
When you register:
- You will receive the full version immediately after payment via email download link
- Will remove "Please register" screen that shows before each compiled batch
file executes
- Unlocks all of the powerful extra commands
- You may distribute the compiled batch files to anyone, anywhere royalty free
- You may select your own custom application icon
- If you need to reinstall the full version, it is easy as entering your registered email
address in the Users section of our website
- Free Priority email support
Contacting Customer Support
brandon@bdargo.com
http://www.bdargo.com