This Function will help you in Displaying a Box Layout in the CMD Console with Different Options. You can Also Change the Type of Box – We hope it will help you in your various projects and results in Awesome creations.
As the Box Function 1.0 was not really a batch file. It was Actually – compiled feature of Advanced B2E Converter. Which allowed us to add ASCII character box in our batch programs. But, Because of Unknown Reasons, It was Raising a lot of False Alarms in Anti-viruses scans. So, It is better to Drop it and come up with something more advanced.
Thus, We’ve created an algorithm that can easily calculate and arrange all necessary ASCII characters together to PRINT A BOX on the cmd console with the help of ‘fn.dll’ plugin. This is a faster and efficient plugin for Batch programming, thus it has its own significance.
This 4.19 KB batch code [Box Function v.2.0] will reduce your lot of hard work and headaches. As, Whenever you start creating an awesome Batch program. It takes a lot of time and effort to just show the data in a Right Way on the CMD Console Screen. Which often reduces the effectiveness and impact of your program on the user.
This batch Function/extension will help you in managing all that in a specified space and improves the appearance of your program. I’ve used this plugin in one of my best Batch project named Bpaints 1.0. (See the OUTPUT in the above Image)
In the Above Image, The box feature that you see there in the ‘Tools selection’ menu. That box tool used this Box Function 2.0 to simply Display Box on the CMD console separately, one by one! One of the best things – That its response is very quick. The speed of Function is all because of a better algorithm, better response and better compatibility of fn.dll plugin over other batch plugins.
As, this Box Function 2.0 is not an independent batch file, i.e. you can’t simply copy and paste it somewhere else and start using its feature. For all this – what you have to do is copy the box.bat file along with fn.dll file to your desired folder and then you can use its properties.
The function takes ‘8 arguments’. “Yes”, you read it Right, “8”, where all are necessary for the various requirements and conditions. You may or may not define them all, but you must define the first 4 arguments in order to get a standard box on the cmd console.
You must have seen the older version of window 1.0, which shows some dialogue box which was fully character-based, you can create similar dialogue boxes using the box 2.0 function in the cmd console.
The average response time of various Box functions in printing a standard box of size (Rows=20, Columns=60) at (x=5, y=5).
call Box.bat 5 5 20 60
BOX FUNCTION VERSION | RESPONSE TIME |
---|---|
1.0 | 260 ms |
2.0 | 190 ms |
3.0 | 80 ms |
So, ver. 2.0 is 30% faster and efficient than ver. 1.0, with 4 new options. Ver.3.0 is 60% faster and efficient than ver. 2.0. With the reduction of a wanted and extra parameter/argument of the function.(Ver. 3.0 is 70% faster than 1.0.)
YOUTUBE LINK- Box Function 2.0