Batch files default to being opened in editor rather than executed


  1. Posts : 42
    Windows 10 Pro x64
       #1

    Batch files default to being opened in editor rather than executed


    This is on Windows 10 x64 creators edition. I’ve created a batch file and placed it in C:\Users\Nick\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Start-up, but every time I start the machine and login, I find that instead of the batch file getting executed, it opens in Notepad++. Same thing happens when I double-click a batch file in Windows Explorer. How do I change the file association so that batch files get executed. By design, Windows doesn’t show the Open With menu option for executable files (.bat, .cmd, .exe, etc) when you right-click on them, nor does it show the Change button to allow you to change the default program in the right-click file properties for executable files, so I can’t change the properties that way.
      My Computer


  2. Posts : 42,988
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2
      My Computers


 

  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 10:37.
Find Us




Windows 10 Forums