Restoring Windows File Type Association for Cura 15.04

Discussion of Ultimaker's open-source Cura software
Post Reply
reibuehl
Reactions:
Posts: 506
Joined: February 9th, 2016, 9:56 am
Location: Stuttgart, Germany
3D Printer(s): Ultimaker 2

Restoring Windows File Type Association for Cura 15.04

Post 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?
User avatar
martin-bienz
Reactions:
Posts: 172
Joined: February 22nd, 2016, 2:42 am
Location: Switzerland
3D Printer(s): Ultimaker Original, prusa i3 mk2

Re: Restoring Windows File Type Association for Cura 15.04

Post 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.
reibuehl
Reactions:
Posts: 506
Joined: February 9th, 2016, 9:56 am
Location: Stuttgart, Germany
3D Printer(s): Ultimaker 2

Re: Restoring Windows File Type Association for Cura 15.04

Post by reibuehl »

Worked really well. Many thanks!!!
Post Reply

Return to “Cura”