Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Run Powershell as administrator
- # Enter CD "NEW FOLDERS DIRECTORY HERE"
- # Run this .ps1 by entering the following: & "ENTER FILE LOCATION OF SCRIPT HERE"
- # Click Enter
- $Folders = Import-Csv "CSV LOCATION GOES HERE"
- ForEach ($Folder in $Folders) {
- $folderName = ($Folder.Title + " (" + $Folder.Year + ") ")
- $folderName = $folderName -replace '_*(\[.*?\]|\(.*?\))_*' -replace '_+', ' ' -replace ':', ' ' -replace '"', "" -replace ',', " "
- New-Item -Name ($folderName) -type directory
- }
Advertisement
Add Comment
Please, Sign In to add comment