1234567891011121314 |
- $addonPath = ".\addons"
- function SymLink
- {
- param([string]$source, [string]$dest)
- Write-Verbose("Creating SymLink: $source > $destination")
- New-Item -ItemType SymbolicLink -Path $dest -Target $source -Force
- }
- if(Test-Path 'P:') #if P Drive Mounted, create symlinks and build from there.
- {
- foreach($addonFolder in Get-ChildItem -Directory $addonPath)
- {
- SymLink -source "$addonPath\$addonFolder" -dest "P:\$addonFolder"
- }
- }
|