Skip to content

Instantly share code, notes, and snippets.

@spiritualized
Created March 25, 2023 14:13
Show Gist options
  • Save spiritualized/46f9587c5fc9c64623b44472fc979590 to your computer and use it in GitHub Desktop.
Save spiritualized/46f9587c5fc9c64623b44472fc979590 to your computer and use it in GitHub Desktop.
Create an identically named folder for each file, and move them inside (windows)
@echo off
for %%i in (*) do (
if not "%%~ni" == "organize" (
md "%%~ni" && move "%%~i" "%%~ni"
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment