An official Batch Programming blog! To Solve the daily problems with windows and fixing them with little notepad scripts. Unlock the Hidden Secrets of Windows, Learn to crack Software via CMD & Make your own Programming tools. Understand to Manipulate your PC via CMD.

Batbox | By DarkBatcher

Hey hello, guys, we are back again. But this time not with any new Batch program or Batch Plugin / Extension, but with some thoughts on a pre-existed plugin named “Batbox.exe”

This post will provide you with Information on Usage of Batbox.exe (BATBOX | BY DARKBATCHER) and our experience of using this batch plugin in our various batch projects. So, let’s start with its maker.

By DarkBatcher

As you can see above in the title of this Article. The Batbox.exe Plugin is created by Mr. DarkBatcher.

Who seems to me as one of the top-rated batch programmers out there on the web among Honguito98, Judago . We can say about him this much, only because of his work, in the field of Batch Programming.

He Has created this awesome batch plugin using the knowledge of VB and ASM languages. He combined both, (VB is used for compiling the ASM Code of bat box to an executable file.) the programming languages to result from it is a beautiful creation of about only 1.5 KBs.

Which not only smaller in size, but also faster in response. These qualities make Batbox.exe a better and one of the Top Batch plugin on our list of plugins. It makes your batch programs smaller and faster, what else a programmer needs out of a plugin?

The dos9 project

We’ve searched very deeply on the internet, but couldn’t find anything about him. So, we are sorry for this issue. But, we’ve come across one of his best batch projects called “dos9 project“. He has encoded a separate platform in order to reduce the limitations of batch programming. 

We personally think is a good project. You can click on the image or its caption to go to its page. Or you can simply search ‘The dos9 Project’ on google, and it will lead you to their official Page.

We personally thank Mr. DarkBatcher from the depth of our heart for making and sharing such an Awesome Batch plugin with all of us.

The Plugin itself is very smaller and ‘All in one‘ plugin, i.e. It contains almost all of the batch parameters that are necessary and important. 

The main feature of this plugin is that it can take multiple parameters in a single go. e.g. All the possible parameters it can take, we can execute them in just a single line.

Also Read:  Typography Function ver.1.0 |by Kvc

And it will execute them without any delay in the execution or printing/calculation. Let’s Talk about the Basic usage of the Batbox Plugin. 

bATBox Usage


BatBox is an external command that allows graphical interface and mouse input in the batch programs. It is a great utility which enables complex output printing console screen in an instance of the second.

It allows making the batch programs dynamic and can move the cursor at any location in just a few milliseconds. In simple words, Batbox allows managing the console screen in a program.


We’ve also used Batbox in many of our great batch projects, just to dynamically manage the things on the console window.


There are basically two types of the syntax that Batbox can Understand. One is Modern syntax and the other one is classical syntax. The modern one is shorter and efficient than the classical one. SO, let’s have a look at both syntaxes.  

  • BATBOX [/d Text] [/g X Y] [/c Color] [/m] [/k[_]] [/a Character] [/w Duration] [/f State] [/s File] [/o OffsetX OffsetY] [/h Mode] [/p Mode] …
  • BATBOX [/disp text] [/goto X posY] [/color col] [/mouse] [/key[_]] …

Following is the List of Parameters it can take: (as shown above in the syntax)

  • /d or /disp: Displays required text on the console. After printing the required text it doesn’t move the cursor to a new line as the ECHO command does. And it also not displays special characters. It shows simple ASCII text on the console. e.g. Batbox /d “This is simple Text.
  • /g or /goto: Changes cursor position to a required location on the console. Column and line numbers are starting form 0,0 from the top-left corner of the console window.e.g. Batbox /g PosX PosY
  • /c or /color: This parameter changes the color of the console Locally, Not like the COLOR command, which changes the color of console Globally. which means, the color of the text printed after this parameter will be changed only. But not for the whole text on the console.e.g. Batbox /c 0x[ColorCode]e.g. Batbox /c 0x0A      [For Green colored text on black background]
  • /m or /mouse: Gets a user click from the console. It waits for the user to click on the console and outputs the String like X:Y:Type. It needs to be used in FOR Loop in order for getting proper and standard functioning of the plugin. Let’s see an example below:FOR /F “tokens=1,2,3 delims=:” %%A in (‘BatBox /m’) DO (  SET _Click=%%C  SET _Y=%%B  SET _X=%%A )Type: has 4 possible values:
    1 : left click2 : right click3 : left double-click (returns first a left click)4 : right double-click (returns first a right-click)
  1. /k[_] or /key[_]: Gets a user keystroke from the console. It waits for the user keystroke from the keyboard and returns the result in the Environment variable ‘%errorlevel%‘. If you’ll use /k_ instead for simple /k, then the console will not stop but will pass the control to the next code if no key is pressed as ‘‘. i.e. Errorlevel == 0.
    e.g. Batbox /k
  2. /a : Similar to the /d switch or parameter, there we specify the string to print on the console, But here we can specify the ASCII Code of the character to print on the console.
    e.g. Batbox /a 97    [Prints ‘a’ on the console]
  3. /w : Used for the delay in the program. It stops the program for a specified number of milliseconds.
    e.g. Batbox /w 1000    [Stops console for 1 Sec.]
  4. /f : Allows to change the console’s window mode via a program. i.e. allows the programmer to make cmd fullscreen via the batch coding. we’ve noticed that this parameter is a little buggy in the plugin as it works fine in Windows XP and Windows 10 [Tested]. But Don’t seems to work in windows 7. So, keep this thing in mind while using it any of your batch programs.
    e.g. Batbox /f [mode]        [Mode can have values either: 1: Full-screen / 2:Windowed]
  5. /s : Plays a wave file. You can simply play music simultaneously using Multi-threading tricks, as used by Honguito98 in many of his Batch Games. but he used fn.dll for that purpose, instead of batbox.exe.
    e.g. Batbox /s [Path of wav file]
  6. /o : Shifts console’s original origin (0,0) form Top-Left corner to any other specified point on the console. We’ve used this awesome switch of Batbox in many of our batch projects, especially in Plot Function, Typography Function, Box Function v.3.0, etc. You can have a look to know its true Potential.
    e.g. Batbox /o OffsetX OffsetY
  7. /h : Hides or shows the console blinking cursor. Very useful in GUI programs, where you don’t wanna prompt the user to type anything and then blinking cursor on the screen seems awkward. So, Hiding it is the only option for us.
    e.g. Batbox /h [Mode]     [Mode can have values either: 0:Hidden / 1:Visible]
  8. /p : Changes console’s windows mode, similar to /f but different in functioning. This switch allows a programmer to minimize or maximize the console window via programming. It can take multiple mode values. Take a look at the following table.
    e.g. Batbox /p [Mode]

    [Mode can have following values:]
    0 : Hides the window.
    1 : Activate and show the window, restoring it to its original size. This value should not be used because it’s reserved to the first call to show the window. You should use value 9 instead.
    2 : Activate the window and minimizes it (show it in the taskbar).
    3 : Activate the window and make it maximized.
  9. 4 : Shows the window restored to its original size. Same result as value 1, except that the window does not obtain focus.
  10. 5 : Activate the window without modifying it.6 : Minimizes the window and activate another window.7 : Minimizes the window. Same result as value 2 except that the window is not activated.8 : Shows the window without modifying it. Same result as value 1, except that the window does not obtain focus.9 : Activate the window and set its size and its position to the initial values if the window was either maximized or minimized.10 : Show the windows and set its size and its position to the default values.11 : Minimizes the windows, even if the command prompt does not respond. This value is not supposed to be used, as it would be surprising that BatBox continues running even if the command prompt does not respond.
Also Read:  Plot Function ver.2.0 | by Kvc

That’s all about Batbox.exe Plugin By DarkBatcher. You can download the full description given above from the Link Given Below.

The Link to download the Batbox plugin is also given separately in the Download link section. If you want to see the official explanation of using Batbox.exe Plugin by DarkBatcher.

Then you can click on this link… It will lead you to the official page of Batbox Usage explained.

If you are still in doubt, or you’ve used it in any of your batch programs and wanted to share your experiences. You can happily comment on it in the comment field below. Thanks for reading.

Keep learning, keep sharing…

Be happy, spread happiness…

Next Post

Previous Post

Leave a Reply

© 2020 TheBATeam

Theme by Anders Norén