Created
January 15, 2025 02:19
-
-
Save TheGU/70030da5e6bd19d552b308109ebf9c8c to your computer and use it in GitHub Desktop.
Powershell command to flatten file of specific ext. from sub folder
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
$targetDir = Convert-Path '.' | |
$targetExt = '*.ttf' | |
Get-ChildItem -LiteralPath $targetDir -Directory | Get-ChildItem -Recurse -File -Filter $targetExt | Move-Item -Destination $targetDir -Whatif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment