Skip to content

Instantly share code, notes, and snippets.

@neetsdkasu
Created July 1, 2015 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neetsdkasu/a45b3deea38908e50cc4 to your computer and use it in GitHub Desktop.
Save neetsdkasu/a45b3deea38908e50cc4 to your computer and use it in GitHub Desktop.
サブディレクトリ以下にある全てのファイル(mp3)をスクリプトディレクトリ(指定ディレクトリ)に移動する。
@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