Set default program via batch file
-
What am I doing wrong. Seems like it should be working.
:: PDF File Association for Bluebeam. :: #################### IF EXIST "C:\Program Files\Bluebeam Software\Bluebeam Revu\Revu\Revu.exe" (goto bluebeam) else goto bluebeamcheck :bluebeam ftype Bluebeam Revu="C:\Program Files\Bluebeam Software\Bluebeam Revu\Revu\Revu.exe" %1 assoc .pdf=Bluebeam Revu Exit :bluebeamcheck IF EXIST "C:\Program Files (x86)\Bluebeam Software\Bluebeam Revu\Revu\Revu32.exe" (goto bluebeamold) else goto bluebeamend :bluebeamold ftype Bluebeam Revu="C:\Program Files (x86)\Bluebeam Software\Bluebeam Revu\Revu\Revu32.exe" %1 assoc .pdf=Bluebeam Revu Exit :bluebeamend Exit
-
I think you have the Ftype and Assoc backwards.
http://superuser.com/questions/204354/how-do-i-get-ftype-assoc-to-match-windows-explorer
-
@gjacobse said:
I think you have the Ftype and Assoc backwards.
http://superuser.com/questions/204354/how-do-i-get-ftype-assoc-to-match-windows-explorer
Not unless Microsoft is wrong about there own commands.
https://technet.microsoft.com/en-us/library/bb490912.aspx?f=255&MSPPError=-2147217396