Windows 10: How to unset default app for Batch Files, cmd files, etc for Windows 11

Discus and support How to unset default app for Batch Files, cmd files, etc for Windows 11 in Windows 10 Software and Apps to solve the problem; After upgrading to Windows 11, all my batch, cmd files etc suddenly open with Notepad, instead of running.I already saw this reg for bat files:... Discussion in 'Windows 10 Software and Apps' started by Emiel Paasschens, Apr 27, 2023.

  1. How to unset default app for Batch Files, cmd files, etc for Windows 11


    After upgrading to Windows 11, all my batch, cmd files etc suddenly open with Notepad, instead of running.I already saw this reg for bat files: https://answers.microsoft.com/en-us/windows/forum/all/how-to-unset-default-app-for-batch-files/589623b3-5951-4a68-95d2-b04b83a9de09but it's for Windows 10. I didn't dare to use the reg file on my Windows 11 device.So my questions are:1. Did the upgrade to Windows 11 change this as I cannot remember I had the same at Windows 10 or that I changed it my self for bat, cmd, etc.2. How can I undo/solve, so the default actions is that they run.

    :)
     
    Emiel Paasschens, Apr 27, 2023
    #1
  2. Rick_265 Win User

    How to unset default app for Batch Files

    I have inadvertently set a default app (Notepad++) for batch files. The fix suggested by:

    Redirecting

    does not work as the "Open with..." option is not available for excecutable files. I tried the registry. there were a few keys that associated Notepad++ and .bat filetypes but I guess there is another superior location. Now that I have written this wonderful batch file it would be nice to use it!

    Can anybody help me or is this a clean install job?
     
    Rick_265, Apr 27, 2023
    #2
  3. Lillebror Win User
    Batch Files Knowledge Base

    You can't just rename a batch file to .exe *Big Grin How to unset default app for Batch Files, cmd files, etc for Windows 11 :D it wont ever work! =D and that "bench" is built into vista *Smile How to unset default app for Batch Files, cmd files, etc for Windows 11 :) And you cant input text into another cmd window.. But if you want to open calc.exe from a batch file just type calc.exe *Smile How to unset default app for Batch Files, cmd files, etc for Windows 11 :)
     
    Lillebror, Apr 27, 2023
    #3
  4. oily_17 Win User

    How to unset default app for Batch Files, cmd files, etc for Windows 11

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Apr 27, 2023
    #4
Thema:

How to unset default app for Batch Files, cmd files, etc for Windows 11

Loading...
  1. How to unset default app for Batch Files, cmd files, etc for Windows 11 - Similar Threads - unset default app

  2. How to unset "open with" context menu for .CMD files

    in Windows 10 Gaming
    How to unset "open with" context menu for .CMD files: Had a problem with virus scanner change and lost ability to double click .bat and .cmd files in file explorer. was able to find fix for batch files....
  3. How to unset "open with" context menu for .CMD files

    in Windows 10 Software and Apps
    How to unset "open with" context menu for .CMD files: Had a problem with virus scanner change and lost ability to double click .bat and .cmd files in file explorer. was able to find fix for batch files....
  4. How to UNSET/REMOVE a default app for file type?

    in Windows 10 Ask Insider
    How to UNSET/REMOVE a default app for file type?: I don't want to change it, I want to remove it COMPLETELY. I accidentally changed my .7z file to open with Internet Explorer. So any game file I download opens with Internet Explorer (I wanna sob lol). I WOULD LIKE THAT TO BE RESET BACK TO NONE. So far there haven't been any...
  5. How to unset default app for Batch Files, cmd files, etc for Windows 11

    in Windows 10 Gaming
    How to unset default app for Batch Files, cmd files, etc for Windows 11: After upgrading to Windows 11, all my batch, cmd files etc suddenly open with Notepad, instead of running.I already saw this reg for bat files:...
  6. How to unset default app for Batch Files

    in Windows 10 Gaming
    How to unset default app for Batch Files: I have inadvertently set a default app Notepad++ for batch files. The fix suggested by:https://answers.microsoft.com/en-us/windows/forum/all/how-to-unsetremove-a-default-app-for-file-type/15f2bf57-aa96-493a-b648-c81856af5eb3does not work as the "Open with..." option is not...
  7. How to unset default app for Batch Files

    in Windows 10 Software and Apps
    How to unset default app for Batch Files: I have inadvertently set a default app Notepad++ for batch files. The fix suggested by:https://answers.microsoft.com/en-us/windows/forum/all/how-to-unsetremove-a-default-app-for-file-type/15f2bf57-aa96-493a-b648-c81856af5eb3does not work as the "Open with..." option is not...
  8. How to unset default app for Batch Files

    in Windows 10 Network and Sharing
    How to unset default app for Batch Files: I have inadvertently set a default app Notepad++ for batch files. The fix suggested by:https://answers.microsoft.com/en-us/windows/forum/all/how-to-unsetremove-a-default-app-for-file-type/15f2bf57-aa96-493a-b648-c81856af5eb3does not work as the "Open with..." option is not...
  9. How to Choose Batch file for Windows 10 (Settings) Default apps-> File

    in Windows 10 Software and Apps
    How to Choose Batch file for Windows 10 (Settings) Default apps-> File: How to change default app to choose a Batch file instead of a Microsoft Store App? If Outlook Attachment (heavy Excel file in my situation) can open with command line switches, it will be separate instance from existing Documents. This improve freezing of existing Documents...
  10. CMD Batch file help

    in Windows 10 Support
    CMD Batch file help: Hello, i am running into a issue i am trying to resolve but im getting nowhere and hopefully someone could help me. I'm simply trying to point a copy to parent or "grand"parent directory/folder. I tried ".." but it seems to come back the same message Code: The system cannot...