Page 1 of 1

Restoring Windows File Type Association for Cura 15.04

Posted: April 24th, 2016, 3:57 pm
by reibuehl
I seem to have messed up my Windows file type associations for STL files. I tried to restore it using the default way with Open With (always), but seem to not get it fixed. Is there a clever way to get it back without uninstalling and reinstalling Cura 15.04?

Re: Restoring Windows File Type Association for Cura 15.04

Posted: April 24th, 2016, 5:32 pm
by martin-bienz
Yes, Cura (especially the "old") is a bit tricky when it comes to file asoc. That is why I created a .reg file for every version, just to make sure. Here is my content of 15.04.3:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.stl]
@="Cura STL model file"

[HKEY_CLASSES_ROOT\Cura STL model file]

[HKEY_CLASSES_ROOT\Cura STL model file\DefaultIcon]
@="C:\\Program Files (x86)\\Cura_15.04.3\\resources\\stl.ico,0"

[HKEY_CLASSES_ROOT\Cura STL model file\shell]
@="open"

[HKEY_CLASSES_ROOT\Cura STL model file\shell\open]

[HKEY_CLASSES_ROOT\Cura STL model file\shell\open\command]
@="\"C:\\Program Files (x86)\\Cura_15.04.3\\python\\pythonw.exe\" -c \"import os; os.chdir(\\\"C:\\Program Files (x86)\\Cura_15.04.3\\\"); import Cura.cura; Cura.cura.main()\" \"%1\""
Just make sure that all paths are correct (don't mess with the double bslashes), it should work. Use notepad (++) and save as 12345.reg. This can then be imported into the registry (double click it).

hope it does the job.

Re: Restoring Windows File Type Association for Cura 15.04

Posted: April 25th, 2016, 2:59 pm
by reibuehl
Worked really well. Many thanks!!!