Created
October 7, 2022 21:10
-
-
Save adamschlesinger/a2539610d9fbf86d204cb7fd905d4c10 to your computer and use it in GitHub Desktop.
This file contains 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
# add correct directories here | |
$InputFolder = "F:\Pictures" | |
$OutputFolder = "F:\test" | |
# add all image types | |
$InputImages = dir $InputFolder -Recurse -include *png,*jpg | |
Foreach($ImagePath in $InputImages) { | |
$LinkPath = $OutputFolder + '\' + $ImagePath.BaseName + $ImagePath.Extension | |
New-Item -ItemType SymbolicLink -Path $LinkPath -Target $ImagePath | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment