Created
July 1, 2015 21:08
-
-
Save neetsdkasu/a45b3deea38908e50cc4 to your computer and use it in GitHub Desktop.
サブディレクトリ以下にある全てのファイル(mp3)をスクリプトディレクトリ(指定ディレクトリ)に移動する。
This file contains 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 | |
setlocal | |
if "%~1"=="" goto thatdir | |
set destdir="%~1" | |
goto doit | |
:thatdir | |
set destdir="%~dp0" | |
:doit | |
for /R %%i in (*.mp3) do move "%%i" %destdir% | |
endlocal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment