makeSymlinks.ps1 454 B

1234567891011121314
  1. $addonPath = ".\addons"
  2. function SymLink
  3. {
  4. param([string]$source, [string]$dest)
  5. Write-Verbose("Creating SymLink: $source > $destination")
  6. New-Item -ItemType SymbolicLink -Path $dest -Target $source -Force
  7. }
  8. if(Test-Path 'P:') #if P Drive Mounted, create symlinks and build from there.
  9. {
  10. foreach($addonFolder in Get-ChildItem -Directory $addonPath)
  11. {
  12. SymLink -source "$addonPath\$addonFolder" -dest "P:\$addonFolder"
  13. }
  14. }