Tutorial

Anonymous
There is a newer version of this page. You can find it here.

Nice and simple stuff here!
Please note, when you have a string, it's still displayed like %this%!

To display text, you type;
text.show; [text and strings]
This is the equivalent of 'echo blah'
To save this text to a file, you add
text.save c:\Text.txt
to the end of it; Looking like this:
text.show; <text and="" strings=""> text.save; c:\Text.txt</text>

To set a string, you type;
string (stringname)=(string)

Here are file option codes to type in:

  • File.copy; (filefolderlocation) (folderlocation) - Copy a file or folder
  • File.move; (filefolderlocation) (folderlocation) - Move a file or folder
  • File.del; (filefolderlocation) - Delete a file or folder
  • File.read; (filelocation) - Read the contents of a file
  • File.open; (filefolderlocation) - Open a file or folder
  • File.print; (filelocation) - Print a file

To allow custom input, type;
text.input; (stringname)=(somestarttext)

To add a pause, type;
Time.pause

To add a location in you're code (like :here), Type;
Loc.set; (name)
To go to it, type;
Loc.goto; (name)

To make a new folder, type;
Dir.new; (name)

To call a batch file, type;
Batch.load; (File.bat)

Now, the main thing, the IF statement

Available Operators;

  • == - Equals
  • =x - Not equal
    • More than
  • < - Less than
  • = - Equal or more than

  • <= - Equal or less than

String's can be user input's or set strings
To add an if statement, type; There must be spaces where I have put them!

if (%string1%(Or text) (Operator) %string2%(Or text)) {
//do stuff here!
} (Not required from here!) else {
//do more stuff here!
}

To change the window name, type;
Window.title; (title)

To remove parameters, type;
Window.hide;

To exit the program, type;
Window.exit;

To clear the screen, type;
Window.clear

TO start another program, type;
Other.start; (Location)

Sample programs!

Normal batch;

@echo off
title Hello world!
echo Hello world!
set /p string=1 or 0:
if %string%==1 echo It's 1!
if %string%==0 echo It's 0!
pause
exit

Mecca batch;

Window.hide;
Window.title; Hello World!
text.show; Hello world!
text.input; string=1 or 0:
if (%string% == 1) {
text.show; It's 1!
}
if (%string% == 0) {
text.show; It's 0!
}
Time.pause
Window.exit