Created
January 16, 2018 09:11
-
-
Save veirus/d58ce3fb2d4c23d8e73c1eab05cb13c3 to your computer and use it in GitHub Desktop.
Moving pictures into corresponding dirs: batch file edition.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if exist "*.jpg" (md ".\jpg\") && (move *.jpg ".\jpg\") && (move *.jpeg ".\jpg\") ELSE (echo no jpg) | |
if exist "*.tga" (md ".\tga\") && (move *.tga ".\tga\") ELSE (echo no tga) | |
if exist "*.bmp" (md ".\bmp\") && (move *.bmp ".\bmp\") ELSE (echo no bmp) | |
if exist "*.gif" (md ".\gif\") && (move *.gif ".\gif\") ELSE (echo no gif) | |
if exist "*.psd" (md ".\psd\") && (move *.psd ".\psd\") ELSE (echo no psd) | |
if exist "*.png" (md ".\png\") && (move *.png ".\png\") ELSE (echo no png) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment