Read Mode

Box function v.3.0 by Kvc

Box Function v.3.0 by Kvc
Box Function v.3.0 by Kvc
As you know that The box function v.1.0 and 2.0 were very much efficient and effective in making the batch programs more advanced and GUI kinda thing, but the problems of Box function ver.1.0 were solved by creating version 2.0, which was more efficient and faster than ver.1.0. As we already know that the version 2.0 uses fn.dll file for printing the box layout on the console. The function’s main idea is to print a box on console by using any method. So, calling the plugin file fn.dll repeatedly makes it enemy of CPU usage, thus as it seems it was not that much efficient. While batbox.exe is a plugin that has property of performing multiple commands in just a single go, without using CPU resources much.

Hence, we used this property of batbox.exe in our version 3.0 of the Box function. Where, the version 1.0 uses 260 ms to perform an action, and ver. 2.0 uses 190 ms to perform the same action. Here’s the main advantage of the Box function ver.3.0 as it uses only 80 ms to perform the same action. Also the code length (Size of function) got reduces due to more systematic approach towards the goal.

Box Function v.3.0 by Kvc
A Preview
The above image will show you demonstration of printing a simple Box on the console using Box function ver.3.0 by kvc. These are the minimum number of arguments that you have to provide, in order to print a proper box on the console. If you want to add of change properties of the Box to be printed on the console, then you need to provide some more parameters while calling the Box function from your batch file. So, lets see the help menu of this function as, it is the main thing which can provide true information about using this function.

Box Function v.3.0 by Kvc
Help Menu
As you can see that, extra unnecessary options are removed in version 3.0 (dialogue box option) because you can make any box dialogue box by simply providing right color codes while calling this function. All rest options remain same, in order to keep things simpler for the users of version 1.0 and 2.0 of this Box function by Kvc. Also this function is approx. 70% faster than the previous version. Which is a huge success for #TheBATeam.

Box Function v.3.0 by Kvc
Usage Example
The example for using this function in your batch files is shown in the above picture. You just have to write a line similar to above line in your batch file, and don’t forget to write ‘Call’ before the Box, otherwise your program may show some unwanted crashes. You can print dialogue boxes on console as shown in the image below.

Box Function v.3.0 by Kvc
Dialogue Box
At-last, we only have to say this much that, if you really like our work in the field of batch programming, feel free to leave your precious reviews / feedback below in the comment field. Till then, as we always say…

Keep learning, keep sharing…
Be happy, spread happiness…



  1. yeah so i put it in one of my batches and when it comes to the box function it shows the box for 0.1 sec and then the batch closes

    1. You must give a closer look to the Syntax for using the 'BOX function' in Batch files...
      As Help menu directly shows the right syntax is:

      "Call Box [x] [y] [height] [width] ..."
      But Not,

      "Box [x] [y] [height] [width] ..."

      Note: Don't Forget the 'Call' command ...


      :D :)


  2. Ver.1.0 and 2.0 also helped me but this one was much efficient and faster. Great Work. Keep it up


Powered by Blogger.