Skip to content

Instantly share code, notes, and snippets.

@object1985
Created November 20, 2022 22:13
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 object1985/4c6b2d1a49a31a7756e549851b173801 to your computer and use it in GitHub Desktop.
Save object1985/4c6b2d1a49a31a7756e549851b173801 to your computer and use it in GitHub Desktop.
カレントディレクトリへフォルダ作成を行い、フォルダ名と部分一致するファイルを作成したフォルダへ移動します。
@echo off
if not "%2"=="" (
echo "mkmvoeの引数は1個のみ指定してください。指定された文字でフォルダ作成と部分一致でファイル移動します。"
exit /b 1
)
mkdir %1
move *%1* %1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment