The first batch file was born back in time, long, long, long ago in the stone age of MS DOS from a golden dinosaurus egg. These early beast of first batch files can’t use functions, but it can call another dinosaurus to help catching the most delicous fruits.
I prefer to use monochrome pictures to make Pixel Art and Pixel Art animations for the text screen with batch files, because ASCII ART is not very pixel precise. But i don’t know how to do it for the Windows command prompt. I use the DosBox emulator to put the Pixel Art inside a block of some extended ASCII character font. The size of the monochrome pictures are limited to 112x112 pixel to fit inside a block of 14x7=98 character with a character size of 8x16 on a 80x25 text screen. I made a video to show how it works and to share the DOS batch files. Have fun.😊
CMD on Windows run in the protected mode of the CPU and this prevent the user to access the hardware components directly. If we try this we get a message of a protection violation.
I like to make batch files for DOS/DosBox only, because in DOS it is allowed to access the hardware components directly. Example to write directly into the screen memory for text screen and the graphic screen.
But ASCII ART is not a very pixel precise presentation of a picture and so i made my own Picture to character converter for DOS/DosBox only and i put all instructions into batch files to display a picture pixel precise inside a block of some ASCII character using a function of the graphic BIOS to change the character font. I do not know how to program this for Windows CMD. Maybe it is possible to access the font with Power Script to put a picture inside. I have no Windows. The following batch file for DOS only is not the converter, but it shows how to display a picture inside the capital letters ABCD and EFGH. @echo off REM Panda.bat echo a>tmp.deb echo mov ax,1110>>tmp.deb echo mov bp,118>>tmp.deb echo mov cx,8>>tmp.deb echo mov dx,41>>tmp.deb echo xor bl,bl>>tmp.deb echo mov bh,10>>tmp.deb echo int 10>>tmp.deb echo ret>>tmp.deb echo org 0118>>tmp.deb echo DB 0,0,1,7,1f,3f,7f,7f,7f,7e,7c,7c,7c,7c,7c,7c>>tmp.deb echo DB 0,3f,ff,ff,ff,ff,ff,ff,1f,f,7,7,7,7,7,7>>tmp.deb echo DB 0,fc,ff,ff,ff,ff,ff,ff,f8,f0,e0,e0,e0,e0,e0,e0>>tmp.deb echo DB 0,0,80,e0,f8,fc,fe,fe,fe,7e,3e,3e,3e,3e,3e,3e>>tmp.deb REM REM 00000000 00000000 00000000 00000000 REM 00000000 00111111 11111100 00000000 REM 00000001 11111111 11111111 10000000 REM 00000111 11111111 11111111 11100000 REM 00011111 11111111 11111111 11111000 REM 00111111 11111111 11111111 11111100 REM 01111111 11111111 11111111 11111110 REM 01111111 11111111 11111111 11111110 REM 01111111 00011111 11111000 11111110 REM 01111110 00001111 11110000 01111110 REM 01111100 00000111 11100000 00111110 REM 01111100 00000111 11100000 00111110 REM 01111100 00000111 11100000 00111110 REM 01111100 00000111 11100000 00111110 REM 01111100 00000111 11100000 00111110 REM 01111100 00000111 11100000 00111110 REM echo DB 7c,7c,7c,7c,7c,3e,3f,3f,1f,7,3,1,0,0,0,0>>tmp.deb echo DB 7,7,7,7,7,7,1f,fe,fc,fc,ff,c0,f0,7f,f,0>>tmp.deb echo DB e0,e0,e0,e0,e0,e0,f8,7f,3f,3f,ff,3,f,fe,f0,0>>tmp.deb echo DB 3e,3e,3e,3e,3e,7c,fc,fc,f8,e0,c0,80,0,0,0,0>>tmp.deb REM REM 01111100 00000111 11100000 00111110 REM 01111100 00000111 11100000 00111110 REM 01111100 00000111 11100000 00111110 REM 01111100 00000111 11100000 00111110 REM 01111100 00000111 11100000 00111110 REM 00111110 00000111 11100000 01111100 REM 00111111 00011111 11111000 11111100 REM 00111111 11111110 01111111 11111100 REM 00011111 11111100 00111111 11111000 REM 00000111 11111100 00111111 11100000 REM 00000011 11111111 11111111 11000000 REM 00000001 11000000 00000011 10000000 REM 00000000 11110000 00001111 00000000 REM 00000000 01111111 11111110 00000000 REM 00000000 00001111 11110000 00000000 REM 00000000 00000000 00000000 00000000 REM echo.>>tmp.deb echo n Panda.com>>tmp.deb echo rcx>>tmp.deb echo 98>>tmp.deb echo wcs:100>>tmp.deb echo q>>tmp.deb debug<tmp.deb>deb.inf del tmp.deb Panda.com del Panda.com echo ABCD echo EFGH
Super video. I just watched other videos also. Continue the good work bro. Could you explain how to work on our mindset? How to set the mindset to learn new things fast?