How do you edit default program for file type to include "/" option?


  1. evx
    Posts : 2
    Windows 10 Pro
       #1

    How do you edit default program for file type to include "/" option?


    Is there a way in 10 to add modifiers or switches to a default program?

    For example, I would like a .xlsx Microsoft Excel file to open with C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE" /e "%1 (That is, adding " /e "%1 to the command line of the .exe file)

    Control Panel\All Control Panel Items\Default Programs\Set Associations lets me change the default program, but not HOW the program opens.
    When I click on a file type, a pop up only gives me the option of keeping the existing default, or looking for a different app. But no right-click option or otption to modify how the program opens (as I believe there was in XP & 7).


    (Also, is there a better way I could have described the issue in the subject line?)

    Thank you,
    Ed
      My Computer


  2. Posts : 1,366
    Windows 10 Pro x64
       #2

    I would think you should be able to edit the shortcut to the executable with command switches or create a batch file to run using those same switches. Nothing should have changed with this process in Windows 10.
      My Computer


  3. evx
    Posts : 2
    Windows 10 Pro
    Thread Starter
       #3

    Hadn't thought of redirecting the shortcut to a batch file. Thanks! (But I sure wish there was still a way to do it directly.)

    I actually found a way to do what I wanted by changing registry keys, though, so I didn't have to do it for this case.

    Thanks,
    Ed
      My Computer


  4. Posts : 5,452
    windows 10 Pro ver 21H2 build 19044.1348
       #4

    evx said:
    Hadn't thought of redirecting the shortcut to a batch file. Thanks! (But I sure wish there was still a way to do it directly.)

    I actually found a way to do what I wanted by changing registry keys, though, so I didn't have to do it for this case.

    Thanks,
    Ed
    Would you share with us on how to change the registry keys ?
    Thank you.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:17.
Find Us




Windows 10 Forums