ChatGPT「powershellで連番のフォルダーを新規作成したい」

英文コマンドプロンプト
i want to create multiple folders with powershell.
I want to create a folder name with consecutive numbers from 1 to 20.

出力結果

for ($i = 1; $i -le 20; $i++) {
    $folderName = "$i"
    New-Item -ItemType Directory -Path $folderName
}
ChatGPT
スポンサーリンク
のんびりブログ

コメント