Boxes is a text filter which can draw any kind of box around its input text. Box design choices range from simple boxes to complex ASCII art. Boxes come with a good collection of ASCII art to start with. I’m a sucker for boxes, they spice up what would be boring script files. Boxes were always available on Linux, and now it’s available under Windows. That’s if you can find them.
This little ditty is a reminder for myself of how to install this on a Windows machine so it is available from everywhere.
Boxes are from Thomas Jensen, download them from this link and save yourself a headache using google to find either boxes, Linux or combinations. Version 1.2 has been released and has a few extra little goodies.
Getting it installed so you can use it any Powershell script on your system is a little difficult but worth the effort.
Part of my setup for every Windows system I use is to create a directory under the C:\ root to store the commands that are mine. These are mostly portable applications but include little utilities like Boxes. I call this directory C:\myCommands. When I add this directory to the PATH statement it makes all those commands I added to the directory, available from any directory on the computer.
Adding the path is done by editing the environment variable for your account, not the system account. Look for the Path variable and Edit it.
Then add the special place you created for your stuff. In my case (C:\myCommands).
When you unzip the BOXES.ZIP program from this link, it is just 2 files. The EXE which does the work and the CFG which has the ASCII artwork in it. I unzip them both into the (c:\myCommands) directory.
The last step to getting boxes everywhere is to add a new environment variable to your account. Start with looking for environment variables.
The name of the new environment variable is BOXES. The value is your special place (C:\myCommands).
Verify that the new environment variable has been created.
To have all of this stuff to start working you will need to reboot.
Now open up the PowerShell window and type:
write-output "GeekMustHave rocks!" | boxes -a hc -d ian_jones
The (ian_jones) is one my favorite ASCII art frames. There are plenty more art frames in the CFG file.
I also have a YouTube Channel (GeekMustHave) no spaces or your get the makeup ladies.
If you stop by to visit please subscribe to let me know this post helped you.