Created
September 27, 2023 09:50
-
-
Save dtomic28/355fcde17cdb5966e8f1da3bcd1c36e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Define the root folder name | |
| $rootFolder = "DXEProjects" | |
| # Define the subfolder names | |
| $subfolders = @("Addons", "Assets") | |
| $assetSubfolders = @("Cameras", "Math", "Plugin", "VCs") | |
| # Create the root folder | |
| New-Item -ItemType Directory -Path $rootFolder | |
| # Create subfolders inside the root folder | |
| foreach ($subfolder in $subfolders) { | |
| $subfolderPath = Join-Path -Path $rootFolder -ChildPath $subfolder | |
| New-Item -ItemType Directory -Path $subfolderPath | |
| } | |
| # Create asset subfolders inside the 'Assets' folder | |
| $assetsFolder = Join-Path -Path $rootFolder -ChildPath "Addons" | |
| foreach ($assetSubfolder in $assetSubfolders) { | |
| $assetSubfolderPath = Join-Path -Path $assetsFolder -ChildPath $assetSubfolder | |
| New-Item -ItemType Directory -Path $assetSubfolderPath | |
| } | |
| Write-Host "Folder structure created successfully." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment