SET god=2005
CHDIR I:
cd \DataNew\%god%\

for /L %%a in (9 1 9) do (
echo %%a

if exist \DataNew\%god%\0%%a (
cd DataNew\%god%\0%%a

for /L %%b in (10 1 30) do (
if exist I:\DataNew\%god%\0%%a\%%b (
cd I:\DataNew\%god%\0%%a\%%b
@echo %%a %%b
if exist *.dat (
2q.bat %god% 0%%a %%b
)
for /D %%c in (sun*) do (
cd I:\DataNew\%god%\0%%a\%%b\%%c
2q.bat %god% 0%%a %%b
)
)
)
for /L %%b in (10 1 30) do (
if exist I:\DataNew\%god%\0%%a\%%b (
cd I:\DataNew\%god%\0%%a\%%b
@echo %%a %%b
if exist *.dat (
2q.bat %god% 0%%a %%b
)
for /D %%c in (krab*) do (
cd I:\DataNew\%god%\0%%a\%%b\%%c
2q.bat %god% 0%%a %%b
)
)
)
for /L %%b in (10 1 30) do (
if exist I:\DataNew\%god%\0%%a\%%b (
cd I:\DataNew\%god%\0%%a\%%b
@echo %%a %%b
if exist *.dat (
2q.bat %god% 0%%a %%b
)
for /D %%c in (calibr*) do (
cd I:\DataNew\%god%\0%%a\%%b\%%c
2q.bat %god% 0%%a %%b
)
)
)
for /L %%b in (10 1 30) do (
if exist I:\DataNew\%god%\0%%a\%%b (
cd I:\DataNew\%god%\0%%a\%%b
@echo %%a %%b
if exist *.dat (
2q.bat %god% 0%%a %%b
)
for /D %%c in (azot*) do (
cd I:\DataNew\%god%\0%%a\%%b\%%c
2q.bat %god% 0%%a %%b
)
)
)
for /L %%b in (10 1 30) do (
if exist I:\DataNew\%god%\0%%a\%%b (
cd I:\DataNew\%god%\0%%a\%%b
@echo %%a %%b
if exist *.dat (
2q.bat %god% 0%%a %%b
)
for /D %%c in (moon*) do (
cd I:\DataNew\%god%\0%%a\%%b\%%c
2q.bat %god% 0%%a %%b
)
)
)
)
)
