Skip to content

Instantly share code, notes, and snippets.

@RoLYroLLs
Created July 28, 2014 20:41
Show Gist options
  • Save RoLYroLLs/eb141f003c339e824b09 to your computer and use it in GitHub Desktop.
Save RoLYroLLs/eb141f003c339e824b09 to your computer and use it in GitHub Desktop.
Script to find files and folders which contain any uppercase character.
@echo off
set folder="C:\"
for /f "delims=" %%A in ( ' dir /b %folder% ^| findstr /R "[ABCDEFGHIJKLMNOPQRSTUVWXYZ]" ' ) do (
echo path: %%~dpnxA
echo name: %%~nxA
echo.
)
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment