Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 653 Bytes

File metadata and controls

27 lines (20 loc) · 653 Bytes

Folder Structure Tools

Two PowerShell scripts for managing folder structures:

Export-FolderStructure.ps1

Exports folder hierarchy to CSV with depth control

Usage

.\Export-FolderStructure.ps1 -Path 'E:' -OutputFile 'structure.csv' -Depth 3

Parameters

  • Path: Root directory to scan
  • OutputFile: CSV file to create
  • Depth: Maximum folder depth (0=unlimited)

Import-FolderStructure.ps1

Creates folders from CSV file generated by Export-FolderStructure.ps1

Usage

.\Import-FolderStructure.ps1 -InputFile 'structure.csv'

Parameters

  • InputFile: CSV file containing folder structure