Created
October 26, 2015 21:03
-
-
Save jahands/f03bcbb332edbac1f706 to your computer and use it in GitHub Desktop.
Add symbolic links for odrive
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
$profileBase = "C:\odrive\G\PC_PB10\geost\" | |
$exclude = @( | |
'Links', '.asdm', '3D Objects', 'Google Drive', 'Viasfora', 'Tracing', 'Searches', '.ssh' | |
) | |
$folders = Get-ChildItem -Attributes Directory -Exclude $exclude -Path "C:\Users\geost" | |
Write-Host $folders | |
foreach($f in $folders){ | |
$cmd = 'mklink /D "' + ($profileBase+($f.Name)) + '" "' + $f.FullName + '"' | |
echo $cmd | |
cmd /c $cmd | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment