LoginSignup
1
0

More than 5 years have passed since last update.

[Windows][batch] リストからディレクトリを生成する

Posted at

すごい今更な技術ですけど、以前作ったのが発掘されたのでメモ。

dirlist.txt に列挙している名前でカレントディレクトリにディレクトリを生成するbatchファイル

DIRCREATE.bat
for /F "delims=" %%a in ('type "%~dp0dirlist.txt"') do md "%~dp0%%~a"

実行例

・dirlist.txtを更新

dirlist.txt
100.AAA
200.BBB
200.CCC
200.CCC\100.DDD

DIRCREATE.bat をダブルクリックして実行
・ディレクトリが生成される

100.AAA
200.BBB
200.CCC
200.CCC\100.DDD
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0