NET STOP msexchangerpc
Shutdown -r -t 15
Shutdown -r -t 15
@echo off
set input_path=D:\Poligon\input
set output_path=D:\Poligon\output
set converter=D:\Poligon\ImageMagick\convert.exe
d:
cd %input_path%
for /F "Delims=" %%j in ('dir /AD /B') do (
cd %input_path%\%%j
mkdir %output_path%\%%j
@rem echo %input_path%\%%j
for /F "Delims=" %%k in ('dir /AD /B') do (
cd %input_path%\%%j\%%k
mkdir %output_path%\%%j\%%k
for /R %%i in (*.tif) do (
%converter% "%input_path%\%%j\%%k\%%~ni.tif" -type Grayscale "%output_path%\%%j\%%k\%%~ni.jpg"
@rem echo %input_path%\%%j\%%k\%%~ni.tif
@rem echo %output_path%\%%j\%%k\%%~ni.jpg
)
)
)
cd /