Batch-script-renaming-folders
提供:Dev Guides
バッチスクリプト-フォルダーの名前変更
フォルダーの名前を変更するために、バッチスクリプトはRENまたはRENAMEコマンドを提供します。
構文
RENAME [drive:][path][directoryname1 | filename1] [directoryname2 | filename2]
フォルダーの名前変更の例を見てみましょう。
例
ren Example Example1
上記のコマンドは、現在の作業ディレクトリにあるExampleという名前のフォルダーの名前をExample1に変更します。
ren C:\Example Example1
上記のコマンドは、Cドライブ内のExampleというフォルダーの名前をExample1に変更します。