Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'd','e' | % {Get-ChildItem -Recurse -Directory ${_}:\} | ? linktype -eq 'Junction' | % {Write-Output ('New-Item -ItemType Junction -Path "{1}" -Name "{2}" -Value "{0}"' -f $_.Target[0],(Split-Path $_.FullName),(Split-Path $_.FullName -Leaf))}
- New-Item -ItemType Junction -Path "D:\" -Name "Projects" -Value "E:\Documents\Projects"
- New-Item -ItemType Junction -Path "D:\" -Name "PS" -Value "E:\Documents\WindowsPowerShell"
- New-Item -ItemType Junction -Path "D:\" -Name "WindowsPowerShell" -Value "E:\Documents\Projects\TrackerScripts"
- New-Item -ItemType Junction -Path "E:\" -Name "My Documents" -Value "E:\Documents"
- New-Item -ItemType Junction -Path "E:\Documents" -Name "Dropbox" -Value "E:\Dropbox"
- New-Item -ItemType Junction -Path "E:\Documents" -Name "Projects" -Value "E:\Dropbox\SAPIEN\Projects"
- New-Item -ItemType Junction -Path "E:\Documents" -Name "SAPIEN" -Value "E:\Dropbox\SAPIEN"
- New-Item -ItemType Junction -Path "E:\Documents" -Name "UltraEdit" -Value "E:\Dropbox\UltraEdit"
- New-Item -ItemType Junction -Path "E:\Documents" -Name "Visual Studio 2010" -Value "e:\Dropbox\Visual Studio 2010"
- New-Item -ItemType Junction -Path "E:\Documents" -Name "WindowsPowerShell" -Value "E:\Dropbox\WindowsPowerShell\"
- New-Item -ItemType Junction -Path "E:\My Documents" -Name "Dropbox" -Value "E:\Dropbox"
- New-Item -ItemType Junction -Path "E:\My Documents" -Name "Projects" -Value "E:\Dropbox\SAPIEN\Projects"
- New-Item -ItemType Junction -Path "E:\My Documents" -Name "SAPIEN" -Value "E:\Dropbox\SAPIEN"
- New-Item -ItemType Junction -Path "E:\My Documents" -Name "UltraEdit" -Value "E:\Dropbox\UltraEdit"
- New-Item -ItemType Junction -Path "E:\My Documents" -Name "Visual Studio 2010" -Value "e:\Dropbox\Visual Studio 2010"
- New-Item -ItemType Junction -Path "E:\My Documents" -Name "WindowsPowerShell" -Value "E:\Dropbox\WindowsPowerShell\"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement