Skip to content

Instantly share code, notes, and snippets.

Last active Jun 10, 2022
What would you like to do?
set windows file associations
# MIT license
echo "## setting up file associations"
foreach ($ext in $exts){
$dotext="." + $ext
cmd /c assoc $dotext=$extfile
cmd /c "ftype $extfile=""C:\Program Files (x86)\Notepad++\notepad++.exe"" ""%1"""
echo ""
# see also:
# *
# *
Copy link

timabell commented Feb 6, 2020

good spot @benestr, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment