convert_imagemagick.bat
@ECHO OFF ECHO #Simple batch convert, using only default settings. For a better adjustment for image quality, use Photoshop instead. ECHO #Before start, make sure this computer has ImageMagick installed. :convert ECHO ################################### SET /p indrive=The drive for target folder (C/D/E/etc...). . . SET /P infolder=The target folder path. . . REM switch to the target drive + folder. %indrive%: CD %infolder% ECHO Create output folder "imgmgk_out" . . . MKDIR imgmgk_out set outfolder=%infolder%\imgmgk_out SET /P informat=image format to be converted. . . (jpg/png/gif/tif/etc...) SET /P outformat=convert images to. . . (jpg/png/gif/tif/etc...) REM do this to avoid errors. ECHO ################################### ECHO Now converting . . . forfiles /m * /c "cmd /c convert @fname.%informat% @fname.%outformat%" ECHO ################################### move *.%outformat% %outfolder% ECHO Finished. START imgmgk_out ECHO ################################### :choose SET /P choose=Continue to another folder? (Y/N) IF "%choose%"=="y" goto convert IF "%choose%"=="Y" goto convert IF "%choose%"=="N" goto end IF "%choose%"=="n" goto end :end EXIT
another...
k: cd "K:\musik\classical\tchaik_pi\karaj_sym" REM in (start, step, end); REM can replace stuff after "do" for /l %%i in (1,1,8) do ( mkdir karaj_sym%%i move tch_karajan_sym%%i.* karaj_sym%%i cd karaj_sym%%i ren tch_karajan_sym%%i.* karaj_sym%%i.* cd ..\ ) pause