Skip to content

Instantly share code, notes, and snippets.

@marcorodas
Last active January 20, 2019 18:45
Show Gist options
  • Select an option

  • Save marcorodas/cfd0827c2bdaee46a2feccb6b9f94a11 to your computer and use it in GitHub Desktop.

Select an option

Save marcorodas/cfd0827c2bdaee46a2feccb6b9f94a11 to your computer and use it in GitHub Desktop.
Batch directory creation based on filenames in title case
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