MilkyWindow
Member
- Local time
- 11:46 PM
- Posts
- 75
- OS
- W11 24H2 26100.712
Hello.
Theres a thing I am struggling with preventing win11 thinking that my set file associations arent set yet they should.
I am using this script customized for my needs ofcourse - it associates file extensions with given path to program and all is quick and sound.
gist.github.com
While it works for like 90% of file associations and opens them by indicated program just fine win11 still dont want to associate some completely and prompts "open with" window.
Even for in software options "associate filetypes" win11 still prompts "open with" window like it didnt work at all.
Only solution os ofcourse manually navigating through "open with" and selecting file extension and it works, however id like to avoid this and automate completely.
I use this script for my after format stuff to speed up process. Primarily for reason to not manually indicate like 250 file associations through "Open With" window.
Script works almost completely but win11 refuses to associate some extensions and simply defaults them to "open with" window.
example extensions:
.gif .jpeg .jpg (rest associates ok) - for image viewer
.7z .rar (but .zip associates just fine) - for 7zip
.c .cpp .h (same as above) - for notepad++
What could be solution for this? I dont want to manually click click thousand times on "open with" window. Is there a way to make w11 stop thinking like that?
Preferably regular scripts reg files ps1 tricks or anything (I dont want to download software just for this simple task)
Theres a thing I am struggling with preventing win11 thinking that my set file associations arent set yet they should.
I am using this script customized for my needs ofcourse - it associates file extensions with given path to program and all is quick and sound.
set windows file associations
set windows file associations. GitHub Gist: instantly share code, notes, and snippets.
While it works for like 90% of file associations and opens them by indicated program just fine win11 still dont want to associate some completely and prompts "open with" window.
Even for in software options "associate filetypes" win11 still prompts "open with" window like it didnt work at all.
Only solution os ofcourse manually navigating through "open with" and selecting file extension and it works, however id like to avoid this and automate completely.
I use this script for my after format stuff to speed up process. Primarily for reason to not manually indicate like 250 file associations through "Open With" window.
Script works almost completely but win11 refuses to associate some extensions and simply defaults them to "open with" window.
example extensions:
.gif .jpeg .jpg (rest associates ok) - for image viewer
.7z .rar (but .zip associates just fine) - for 7zip
.c .cpp .h (same as above) - for notepad++
What could be solution for this? I dont want to manually click click thousand times on "open with" window. Is there a way to make w11 stop thinking like that?
Preferably regular scripts reg files ps1 tricks or anything (I dont want to download software just for this simple task)
My Computer
System One
-
- OS
- W11 24H2 26100.712
- Other Info
- Updates are disease.




