Two PowerShell scripts for managing folder structures:
Exports folder hierarchy to CSV with depth control
.\Export-FolderStructure.ps1 -Path 'E:' -OutputFile 'structure.csv' -Depth 3Path: Root directory to scanOutputFile: CSV file to createDepth: Maximum folder depth (0=unlimited)
Creates folders from CSV file generated by Export-FolderStructure.ps1
.\Import-FolderStructure.ps1 -InputFile 'structure.csv'InputFile: CSV file containing folder structure