My batch file contains:
@echo off
:default_grid
set "0=-"
set "1=-"
set "2=-"
set "3=-"
set "4=-"
set "10=-"
set "11=-"
set "12=-"
set "13=-"
set "14=-"
set "20=-"
set "21=-"
set "22=-"
set "23=-"
set "24=-"
set "30=-"
set "31=-"
set "32=-"
set "33=-"
set "34=-"
set "40=-"
set "41=-"
set "42=-"
set "43=-"
set "44=-"
set pos=22
if %pos% EQU 22 set "22=O"
:grid
echo.
echo "%0%" "%10%" "%20%" "%30%" "%40%"
echo "%1%" "%11%" "%21%" "%31%" "%41%"
echo "%2%" "%12%" "%22%" "%32%" "%42%"
echo "%3%" "%13%" "%23%" "%33%" "%43%"
echo "%4%" "%14%" "%24%" "%34%" "%44%"
echo.
pause >nul
I am having a hard time understanding what I am doing wrong.
I have 25 variables that should potentially display -
.
What I want to see is:
- - - - -
- - - - -
- - - - -
- - - - -
- - - - -
But instead I see:
"C:\Users\MuggyYak\Desktop\5x5.bat"10203040"
"11213141"
"12223242"
"13233343"
"14243444"
Does anybody know what to do?