AnsweredAssumed Answered

How to use last opend SW Version with 2012

Question asked by Stefan Eckhof on Sep 25, 2012
Latest reply on Sep 25, 2012 by Alin Vargatu

Until 2012 SW opend by dobleclick on a part in the Windows Explorer the last opend SW Version (2010, 2011) Thats not possible with Windows 7x 64 and SW 2012.

I found that SW 2012 dosn`t write in HKEY_CLASSES_ROOT\SldPart.Document\shell\open\command

I write a batch File that works, but that isn`t the real solution because my preview, Thumbnails and Icons a get damaged...

 

@echo off
@echo Welche Version soll per Doppelklick aus dem Windows Explorer geoeffnet werden?
@echo Bitte waehlen Sie:
@echo.
@echo SolidWorks 2012 = 1
@echo Solidworks 2011 = 2
@echo Solidworks 2010 = 3
CHOICE /N /C 123 /M "Auswahl: "


if %errorlevel%==1 goto 2012
if %errorlevel%==2 goto 2011
if %errorlevel%==3 goto 2010

exit

:2012
REM SolidWorks 2012

reg add "HKEY_CLASSES_ROOT\SldPart.Document\shell\open\command" /ve /t REG_SZ /d  "C:\\Program Files\\SolidWorks Corp_2012\\SolidWorks\\sldworks.exe /dde" /f
reg add "HKEY_CLASSES_ROOT\SldAssem.Document\shell\open\command" /ve /t REG_SZ /d  "C:\\Program Files\\SolidWorks Corp_2012\\SolidWorks\\sldworks.exe /dde" /f
reg add "HKEY_CLASSES_ROOT\SldDraw.Document\shell\open\command" /ve /t REG_SZ /d  "C:\\Program Files\\SolidWorks Corp_2012\\SolidWorks\\sldworks.exe /dde" /f

 

exit

:2011
REM SolidWorks 2011

reg add "HKEY_CLASSES_ROOT\SldPart.Document\shell\open\command" /ve /t REG_SZ /d  "C:\\Program Files\\SolidWorks Corp_2011\\SolidWorks\\sldworks.exe /dde" /f
reg add "HKEY_CLASSES_ROOT\SldAssem.Document\shell\open\command" /ve /t REG_SZ /d  "C:\\Program Files\\SolidWorks Corp_2011\\SolidWorks\\sldworks.exe /dde" /f
reg add "HKEY_CLASSES_ROOT\SldDraw.Document\shell\open\command" /ve /t REG_SZ /d  "C:\\Program Files\\SolidWorks Corp_2011\\SolidWorks\\sldworks.exe /dde" /f


exit


:2010
REM Solidworks 2010

reg add "HKEY_CLASSES_ROOT\SldPart.Document\shell\open\command" /ve /t REG_SZ /d  "C:\\Program Files\\SolidWorks Corp_2010\\SolidWorks\\sldworks.exe /dde" /f
reg add "HKEY_CLASSES_ROOT\SldAssem.Document\shell\open\command" /ve /t REG_SZ /d  "C:\\Program Files\\SolidWorks Corp_2010\\SolidWorks\\sldworks.exe /dde" /f
reg add "HKEY_CLASSES_ROOT\SldDraw.Document\shell\open\command" /ve /t REG_SZ /d  "C:\\Program Files\\SolidWorks Corp_2010\\SolidWorks\\sldworks.exe /dde" /f

 

exit

 

 

Any "Real" sulution?

Greetings

Stefan

Outcomes