You are not logged in.
It seems with every new version of the software I have to get a computer tech to re-associate my files to the latest version of the software. Is there a fix for this???
I have windows 7 with Vericut 7.4.1 installed.
Offline
This is because the installation path changes...
I created a .bat script to generate a .reg file that will create the proper context handler entries for the new version... Just change the path of the variable "VERICUT_LOADPOINT" to the loadpoint of the version you want to associate to VERICUT files and run the script... and then merge the resulting .reg file...
I wrote it as an script because you can bundle it in an automated installation... (Stefan loves this kind of stuff.... )
You can copy & paste it in notepad and save it with the .bat or .cmd extension - Run it and a .reg file will be created at your desktop. Follow the instructions of the script... You don´t have to have ADMIN rights to run the script and I think it will not run properly if you do so. But you do need ADMIN rights to merge the .reg file to your Windows registry.
This will also create an action in the context handler: If you right-click the .vcproject file the option "Open with VERICUT" will be there...
Here it goes: I UPDATED THE POST WITH A VERSION THAT WORKS IN WINDOWS 7
@ECHO OFF
REM ################################################
REM ### EDIT THE VERICUT_LOADPOINT VARIABLE WITH THE ###
REM ### INSTALLATION PATH (TYPICALLY SAME AS CGTECH_INSTALL) ###
REM ################################################
SET VERICUT_LOADPOINT=C:\\Program Files\\CGTech\\VERICUT 7.4.1 DON´T ADD THIS COMMENT - NOTICE THE DOUBLE "\\" IN THE PATH DELIMITER - THE REGISTRY LIKES DOUBLE "\"
REM ###############################
REM ### DO NOT EDIT FROM THIS POINT ON ###
REM ###############################
SET CAMINHO_DESKTOP=%USERPROFILE%\DESKTOP
ECHO Windows Registry Editor Version 5.00 > %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO. >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO [HKEY_CLASSES_ROOT\.vcproject] >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO @="VERICUT Project" >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO. >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO [HKEY_CLASSES_ROOT\.vcproject\DefaultIcon] >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO @="%vericut_loadpoint%\\windows64\\commands\\vcut.ico,0" >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO. >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO [HKEY_CLASSES_ROOT\.vcproject\shell] >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO. >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO [HKEY_CLASSES_ROOT\.vcproject\shell\Open with VERICUT] >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO. >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO [HKEY_CLASSES_ROOT\.vcproject\shell\Open with VERICUT\command] >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO @="\"%vericut_loadpoint%\\windows64\\commands\\vericut.bat\" \"vcp=%%1\"" >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO. >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.vcproject] >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO @="VERICUT Project" >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO. >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.vcproject\DefaultIcon] >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO @="%vericut_loadpoint%\\windows64\\commands\\vcut.ico,0" >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO. >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.vcproject\shell] >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO. >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.vcproject\shell\Open with VERICUT] >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO. >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.vcproject\shell\Open with VERICUT\command] >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO @="\"%vericut_loadpoint%\\windows64\\commands\\vericut.bat\" \"vcp=%%1\"" >> %caminho_desktop%\VERICUT_Shell_%username%.reg
ECHO. >> %caminho_desktop%\VERICUT_Shell_%username%.reg
CLS
COLOR 1A
CLS
ECHO.
ECHO The file VERICUT_Shell_%username%.reg has been created at your desktop,
ECHO in the folder %caminho_desktop%
ECHO.
ECHO Please right click it and select "Merge".
ECHO.
ECHO This will associate .VcProject files with vericut.bat...
ECHO.
ECHO Then reboot...
ECHO.
PAUSE
EXIT
Last edited by Verifun (2015-10-31 23:36:06)
Daniel Santos
Offline
You could use REG ADD instead of creating a reg file.
Stefan Pendl
Systemmanager CAD/CAM
Windows 10 x64 Edition, Vericut 9.0
Offline
You could use REG ADD instead of creating a reg file.
Yes... I think this one was born as an experiment as a batch file and I never revisited the method...
Good idea!
Daniel Santos
Offline