title: Basic Input-Output System in Batch
body: <p>I've been trying to do basic input/output stuff in batch. In this bit of code, the user puts in a series of directions in the <em>:1</em> section (in notepad) and that sets off a chain reaction that will eventually show one of five images once the file is executed.</p>
  
  <pre><code>@echo off
  
  :1
  set dun1croomnow=5c
  set direction=South
      if %direction%==North set dir=n
      if %direction%==East set dir=e
      if %direction%==South set dir=s
      if %direction%==West set dir=w
  
  set d1a7=n
  set d1c5=y
  set d1d2=n
  set d1d7=n
  
  :d1areset
  set dun1c=%dun1croomnow%%d1d2%%d1c5%%d1a7%%d1d7%
  
  :dun1p1c1
  if %dun1c%==nonHnnnn goto d1p1cempty
  
  if %dun1c%==5cHnynn goto d1p1c
  if %dun1c%==5cHnyyn goto d1p1c
  if %dun1c%==5cHnyny goto d1p1c
  if %dun1c%==5cHyynn goto d1p1c
  if %dun1c%==5cHyyyn goto d1p1c
  if %dun1c%==5cHyyny goto d1p1c
  
  if %dun1c%==nonHnynn goto d1p1c2
  if %dun1c%==nonHnyyn goto d1p1c2
  if %dun1c%==nonHnyny goto d1p1c2
  if %dun1c%==nonHyynn goto d1p1c2
  if %dun1c%==nonHyyyn goto d1p1c2
  if %dun1c%==nonHyyny goto d1p1c2
  
  if %dun1c%==5cHnyyy goto d1p2c
  if %dun1c%==nonHnyyy goto d1p2c2
  if %dun1c%==5cHyyyy goto d1p2c
  if %dun1c%==nonHyyyy goto d1p2c2
  
  :d1p1cempty
      echo                                                    :                  
      echo                                                    :(C)                 
      echo                                                    :  
  pause &gt;nul
  goto dun1p1d1
  :d1p1c
      echo                           \ :                      :                  
      echo                            [%dir%]                     :(C)                 
      echo                           /                        :   
  pause &gt;nul
  goto dun1p1d1
  :d1p1c2
          echo                           \ :                      :                  
          echo                            [ ]                     :(C)                 
          echo                           /                        :   
  pause &gt;nul
  goto dun1p1d1
  :d1p2c
      echo                           \ :         :            :                  
      echo                            [%dir%]        :            :(C)                 
      echo                           /           :            :        
  pause &gt;nul
  goto dun1p1d1
  :d1p2c2
          echo                           \ :         :            :                  
          echo                            [ ]        :            :(C)                 
          echo                           /           :            :        
  pause &gt;nul
  goto dun1p1d1
  
  :dun1p1d1
  pause
  </code></pre>
  
  <p>The information you input into section <em>:1</em> should determine the image shown to you in command prompt, but only section <em>:d1p1cempty</em>'s image will appear, no matter what you put into <em>:1</em>.</p>
  
  <p>Can someone help?</p>