[Windows Mobile] ivanmmj:
I need some help debugging this script I wrote. It takes all the files and moved them together into the right folders for ervius's kitchen. The problem is that I'm having a problem with anything not 0C0A being moved to the COMMON folders but I can't seem to figure out why. (The code is a little messy so it's hard to follow, sorry.)

@echo on
echo.
cls
echo. Initializing Ivan's Organize script...
echo. Please Wait...
echo. Creating Language Structure...
echo.
echo.
echo.
echo.
mkdir ready
cd ready
mkdir DPI_96
cd DPI_96
set Back=A
GOTO Create
:A
cd ..
mkdir DPI_96_RESH_240_RESV_240
cd DPI_96_RESH_240_RESV_240
set Back=B
GOTO Create
:B
cd ..
mkdir DPI_96_RESH_240_RESV_320
cd DPI_96_RESH_240_RESV_320
set Back=C
GOTO Create
:C
cd ..
mkdir DPI_96_RESH_240_RESV_400
cd DPI_96_RESH_240_RESV_400
set Back=D
GOTO Create
:D
cd ..
mkdir DPI_128
cd DPI_128
set Back=E
GOTO Create
:E
cd ..
mkdir DPI_128_RESH_320_RESV_320
cd DPI_128_RESH_320_RESV_320
set Back=F
GOTO Create
:F
cd ..
mkdir DPI_192
cd DPI_192
set Back=G
GOTO Create
:G
cd ..
mkdir DPI_192_RESH_480_RESV_480
cd DPI_192_RESH_480_RESV_480
set Back=H
GOTO Create
:H
cd ..
mkdir DPI_192_RESH_480_RESV_640
cd DPI_192_RESH_480_RESV_640
set Back=I
GOTO Create
:I
cd ..
mkdir DPI_192_RESH_480_RESV_800
cd DPI_192_RESH_480_RESV_800
set Back=J
GOTO Create
:J
cd ..
mkdir DPI_192_RESH_480_RESV_854
cd DPI_192_RESH_480_RESV_854
set Back=K
GOTO Create
:K
cd ..
mkdir SHARED
cd SHARED
set Back=L
GOTO Create
:L
cd ..
GOTO Work
:Create
mkdir 0C0A
mkdir 040B
mkdir 040C
mkdir 041D
mkdir 0404
mkdir 0405
mkdir 0406
mkdir 0407
mkdir 0408
mkdir 0409
mkdir 0410
mkdir 0411
mkdir 0412
mkdir 0413
mkdir 0414
mkdir 0415
mkdir 0416
mkdir 0419
mkdir 0804
mkdir 0410
mkdir 0411
mkdir 0412
mkdir 0413
mkdir 0414
mkdir 0415
mkdir 0416
mkdir 0419
mkdir 0804
mkdir 0816
mkdir COMMON
GOTO %back%

:Work
cd ..
cd packages
cls
echo.
echo. Searching for languages files...
echo.

set lang2=0C0A
set jump=1
GOTO Starting
:1

set lang2=040B
set jump=2
GOTO Starting
:2

set lang2=040C
set jump=3
GOTO Starting
:3

set lang2=041D
set jump=4
GOTO Starting
:4

set lang2=0404
set jump=5
GOTO Starting
:5

set lang2=0405
set jump=6
GOTO Starting
:6

set lang2=0406
set jump=7
GOTO Starting
:7

set lang2=0407
set jump=8
GOTO Starting
:8

set lang2=0408
set jump=9
GOTO Starting
:9

set lang2=0409
set jump=10
GOTO Starting
:10

set lang2=0410
set jump=11
GOTO Starting
:11

set lang2=0411
set jump=12
GOTO Starting
:12

set lang2=0412
set jump=13
GOTO Starting
:13

set lang2=0413
set jump=14
GOTO Starting
:14

set lang2=0414
set jump=15
GOTO Starting
:15

set lang2=0415
set jump=16
GOTO Starting
:16

set lang2=0416
set jump=17
GOTO Starting
:17

set lang2=0419
set jump=18
GOTO Starting
:18

set lang2=0804
set jump=19
GOTO Starting
:19

set lang2=0816
set jump=20
GOTO Starting
:20
GOTO after

:Starting
set process=process
:start
set lang=%lang2%
set dpi=96
set resh=240
set resv=400
set back2=q
GOTO %process%
:q
set lang=%lang2%
set dpi=96
set resh=240
set resv=320
set back2=w
GOTO %process%
:w
set lang=%lang2%
set dpi=96
set resh=240
set resv=240
set back2=ee
GOTO %process%
:ee
set lang=%lang2%
set dpi=128
set resh=320
set resv=320
set back2=r
GOTO %process%
:r
set lang=%lang2%
set dpi=192
set resh=480
set resv=854
set back2=t
GOTO %process%
:t
set lang=%lang2%
set dpi=192
set resh=480
set resv=800
set back2=y
GOTO %process%
:y
set lang=%lang2%
set dpi=192
set resh=480
set resv=640
set back2=u
GOTO %process%
:u
set lang=%lang2%
set dpi=192
set resh=480
set resv=480
set back2=ii
GOTO %process%
:ii
if process==%process% GOTO 111
GOTO 222
:111
set process=process2
GOTO start
:222
if process2==%process% GOTO 333
GOTO 444
:333
set process=process3
GOTO start
:444
if process3==%process% GOTO 555
GOTO 666
:555
set process=process4
GOTO start
:666
if process4==%process% GOTO 777
GOTO 888
:777
set process=process5
GOTO start
:888
if process5==%process% GOTO 999
GOTO 000
:999
set process=process6
GOTO start
:000
if process6==%process% GOTO %jump%

:process
for /D %%A in ("*%lang%*%dpi%*%resh%*%resv%") do move %%A ..\ready\DPI_%dpi%_RESH_%resh%_RESV_%resv%\%lang%\%%A
GOTO %back2%

:process2
for /D %%B in ("*%dpi%*%resh%*%resv%") do move %%B ..\ready\DPI_%dpi%_RESH_%resh%_RESV_%resv%\COMMON\%%B
GOTO %back2%

:process3
for /D %%C in ("*%lang%*%dpi%") do move %%C ..\ready\DPI_%dpi%\%lang%\%%C
GOTO %back2%

:process4
for /D %%D in ("*%dpi%") do move %%D ..\ready\DPI_%dpi%\COMMON\%%D
GOTO %back2%

:process5
for /D %%E in ("*%lang%*") do move %%E ..\ready\SHARED\%lang%\%%E
GOTO %back2%

:process6
for /D %%F in ("*") do move %%F ..\ready\SHARED\COMMON\%%F
GOTO %back2%

:after