Skip to content

Instantly share code, notes, and snippets.

@struppigel
Created April 30, 2025 14:27
Show Gist options
  • Save struppigel/a121eb3539177565a11d1c6ac2f560f6 to your computer and use it in GitHub Desktop.
Save struppigel/a121eb3539177565a11d1c6ac2f560f6 to your computer and use it in GitHub Desktop.
strings.bat for use in context-menu
echo on
cd C:\Tools\SysinternalsSuite
if exist %1\* (
for /F "delims=" %%f in ('dir /b /s %1') do (
:: skip folders
if not exist "%%~f\" (
echo "%%~f" >> "%~dp1\%~n1.strings.txt"
echo.
strings64.exe -n 6 "%%~f" >> "%~dp1\%~n1.strings.txt"
)
)
) else (
strings64.exe -n 6 "%~1" > "%~dp1\%~n1.strings.txt"
)
start notepad "%~dp1\%~n1.strings.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment