ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Set default program via batch file

    Scheduled Pinned Locked Moved IT Discussion
    3 Posts 2 Posters 803 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jason Banned
      last edited by

      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
      
      1 Reply Last reply Reply Quote 2
      • gjacobseG
        gjacobse
        last edited by

        I think you have the Ftype and Assoc backwards.

        http://superuser.com/questions/204354/how-do-i-get-ftype-assoc-to-match-windows-explorer

        J 1 Reply Last reply Reply Quote 0
        • J
          Jason Banned @gjacobse
          last edited by

          @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

          https://support.microsoft.com/en-us/kb/323526

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post