Create Folders in PowerShell
Create Folders in PowerShell
Create Folders in PowerShell
create_folders.ps1
# Change the path to your desired loaction
cd D:\Raj\PowerShell\
# Add the folder names you want to create
$folders = @("001", "002", "003")
foreach ($folder in $folders) {
New-Item -ItemType Directory -Path $folder -Force | Out-Null
}
Write-Host "Folders created successfully."