title: .BAT To .SH Converting?
body: <p>Well I've written a bat file which is used to load my pokemon backups for when I'm away from my gameboys, however I've converted to linux and I'm having issues getting the .BAT file in my exe (I've decompiled the exe back the the source) to work as a .SH and I can't really find much on how to use shell commands as the same function they would be in a BAT file :/ I would also love to know how to set the SH file to load out of the current directory AND run said program in wine. </p>
  
  <p>Here is my .BAT file which works 100% perfectly under windows but refuses to run under wine or a CMD prompt portable under wine</p>
  
  <pre><code>`:MENU
  CLS
  
  ECHO ============= RawX GBA's =============
  ECHO -------------------------------------
  ECHO 1.  Pokemon Crystal
  ECHO 2.  Pokemon Green
  ECHO 3.  Pokemon Gold
  ECHO 4.  Pokemon Pikachu
  ECHO 5.  Pokemon Ruby
  ECHO 6.  Pokemon Chaos Black
  Echo 7.  Pokemon Silver
  ECHO 8.  Pokemon White (NDS)
  ECHO 9.
  Echo 10.
  Echo 11.
  Echo 12. Pokemon Black (NDS)
  ECHO ==========PRESS 'Q' TO QUIT==========
  ECHO.
  color fc
  
  SET INPUT=
  SET /P INPUT=Please select a number:
  
  IF /I '%INPUT%'=='1' GOTO Selection1
  IF /I '%INPUT%'=='2' GOTO Selection2
  IF /I '%INPUT%'=='3' GOTO Selection3
  IF /I '%INPUT%'=='4' GOTO Selection4
  IF /I '%INPUT%'=='5' GOTO Selection5
  IF /I '%INPUT%'=='6' GOTO Selection6
  IF /I '%INPUT%'=='7' GOTO Selection7
  IF /I '%INPUT%'=='8' GOTO Selection8
  IF /I '%INPUT%'=='9' GOTO Selection9
  IF /I '%INPUT%'=='10' GOTO Selection10
  IF /I '%INPUT%'=='11' GOTO Selection11
  IF /I '%INPUT%'=='12' GOTO Selection12
  IF /I '%INPUT%'=='Q' GOTO Quit
  
  CLS
  
  ECHO ============INVALID INPUT============
  ECHO -------------------------------------
  ECHO Please select a number from the Main
  echo Menu [1-9] or select 'Q' to quit.
  ECHO -------------------------------------
  ECHO ======PRESS ANY KEY TO CONTINUE======
  
  PAUSE &gt; NUL
  GOTO MENU
  
  :Selection1
  
  :1
  ".\VisualBoyAdvance.exe"  ".\Pokemon Crystal.zip"
  goto menu
  
  :Selection2
  
  :2
  ".\VisualBoyAdvance.exe"  ".\Pokemon Green.zip"
  goto menu
  
  :Selection3
  
  ".\VisualBoyAdvance.exe"  ".\Pokemon Gold.zip"
  goto menu
  
  :Selection4
  
  ".\VisualBoyAdvance.exe"  ".\Poke'mon Pikachu.zip"
  goto menu
  
  :Selection5
  
  ".\VisualBoyAdvance.exe"  ".\Pokemon Ruby.zip"
  goto menu
  
  :Selection6
  
  ".\VisualBoyAdvance.exe"  ".\Pokemon - Chaos Black.zip"
  goto menu
  
  :Selection7
  
  ".\VisualBoyAdvance.exe"  ".\Pokemon Silver.zip"
  goto menu
  
  
  :Selection8
  
  ".\desmume.exe"  ".\PokeWhite.zip"
  goto menu
  
  :Selection12
  
  ".\desmume.exe"  ".\PokeBlack.zip"
  goto menu
  
  
  
  
  
  
  :Quit
  CLS
  
  ECHO ==============THANK YOU===============
  ECHO -------------------------------------
  ECHO ======PRESS ANY KEY TO CONTINUE======
  
  PAUSE&gt;NUL
  EXIT`
  </code></pre>