Skip to content

Instantly share code, notes, and snippets.

@olliencc
Created June 29, 2020 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olliencc/606b531f2a3e70f781fda47f265f650d to your computer and use it in GitHub Desktop.
Save olliencc/606b531f2a3e70f781fda47f265f650d to your computer and use it in GitHub Desktop.
Shows which program loads which extension when you double-click
@echo off
REM °²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²°
REM °² Enumerates all files extensions ²°
REM °² and what opens them on Windows 10 in batch/cmd ²°
REM °² twitter: @ollieatnccgroup ²°
REM °²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²²°
for /f "tokens=1,2 delims==" %%G in ('assoc') do (
echo Extension: %%G
for /f "tokens=1,2 delims==" %%I in ('ftype %%H 2^> nul') do (
echo Program: %%J
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment