Last active
January 20, 2019 18:45
-
-
Save marcorodas/cfd0827c2bdaee46a2feccb6b9f94a11 to your computer and use it in GitHub Desktop.
Batch directory creation based on filenames in title case
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
| powershell -command "Get-ChildItem . -File | %%{$_.Name.TrimEnd($_.Extension)} | %%{(Get-Culture).TextInfo.ToTitleCase($_.ToLower())} | ForEach-Object {new-item -Name $_ -ItemType directory}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment