cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Change Windows file association for Creo files

svlaminck
9-Granite

Change Windows file association for Creo files

Hello guys,

 

In our company we work with a startup batch script that sets variables and config settings.

If I double click on a Creo file, or open it from our ERP system, Windows has this file (*.prt.1, *.drw.2, *.asm.3 …) associated with Parametric.exe and not our batch script?

 

If this was for 1 file it is not a problem but it’s for *.1, *.2, *.3, - *.250 and on 10 systems

So, I am looking for an automated way to change file associations.

 

I tried the following already with no success:

 

  • I found some files in the Creo installation that we tried to change:
    • C:\PTC\Creo 5.0.4.0\InstallManager\CommonCreated.reg
    • C:\PTC\Creo 5.0.4.0\Parametric\bin\pim\xml\created.reg
      • [HKEY_CLASSES_ROOT\.1]
      • @="C:\\PTC\\CadCorner_Config_Creo5.00\\0_Bin\\Start_Creo5.bat"
      •  
      • HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.1
      • @="C:\\PTC\\CadCorner_Config_Creo5.00\\0_Bin\\Start_Creo5.bat"
  • Tried with the DOS commands Ftype, and Assoc with no good result.
    • assoc .1=CreoParametric
    • assoc .2=CreoParametric
    • assoc .3=CreoParametric
    • assoc .4=CreoParametric
    • ….
    • ftype CreoParametric=C:\PTC\CadCorner_Config_Creo5.00\0_Bin\Start_Creo5.bat

 

Could somebody help us with a solution?

Thanks,

Stefaan

1 ACCEPTED SOLUTION

Accepted Solutions

Hello,

 

I want to present the solution provided by Daniel Nordin, that was the solution!

See attached file because the forum does not allow the syntax.

 

 

View solution in original post

2 REPLIES 2

Hi,

I opened Command prompt as Administrator and used information from https://stackoverflow.com/questions/28189137/windows-establish-file-association-to-batch-file page.

 

ASSOC .250=MY.FILETYPE
FTYPE MY.FILETYPE=cmd /c call "D:\users\mh\creo5_parametric\zzz.bat" "%1" %*

Martin Hanák

Hello,

 

I want to present the solution provided by Daniel Nordin, that was the solution!

See attached file because the forum does not allow the syntax.

 

 

Top Tags