Windows 8 and 8.1 Forums


.cmd file only opens in notepad, already tried a few fixes

  1. #1


    Posts : 4
    Windows 8.1

    .cmd file only opens in notepad, already tried a few fixes


    So I'm trying to set up a miner for a cryptocurrency and to do so I have to start a .cmd file. However, instead of running in command prompt, it only opens in notepad. I already tried this: Default File Associations - Restore in Windows 8 and I get the message that some keys are open by the system blah blah or I have insufficient privileges (I am the only user on my computer).

    I also tried going into regedit and deleting any extension associates (not sure if correct name), but there was not one of .cmd, and when I tried creating one and pasting the cmd reg file I downloaded into it, it didn't let me.

    I also going through set associations in control panel and setting command prompt to being the default program, but it just says "The program you have selected cannot be associated with this file type. Please choose another program."

    Any ideas?

      My System SpecsSystem Spec

  2. #2


    Posts : 1,883
    7601.18247.x86fre.win7sp1


    Should be .bat file, not .cmd.

    You'd probably want to start the .bat with "run as administrator" checked (enabled).
      My System SpecsSystem Spec

  3. #3


    Posts : 4
    Windows 8.1


    Changing filename from Start.cmd to Start.bat did nothing, still opening in notepad, and there is nowhere to check a box to run as administrator. (I'm thinking this is because windows sees it as a .txt file instead a .exe or something of that nature, then again I'm new to windows 8)
      My System SpecsSystem Spec

  4. #4


    Posts : 1,883
    7601.18247.x86fre.win7sp1


    Your associations are a little out of order.

    You can fix that to get it to go, or open up an elevated command prompt.

    Then use cd /d command followed by the location of your file.

    For example: cd /d C:\BatFileInHere

    Then just type the name of the bat file, press Enter and it will run.
      My System SpecsSystem Spec

  5. #5


    Posts : 4
    Windows 8.1


    Yeah it's saying unknown application is associated with .cmd and .bat . I've already tried to fix the associations using the above, but none of that worked.
      My System SpecsSystem Spec

  6. #6


    Posts : 4
    Windows 8.1


    thanks fixed!
      My System SpecsSystem Spec

.cmd file only opens in notepad, already tried a few fixes
Related Threads
Notepad opens on boot in General Support
Hi, I recently upgraded my W7 Home premium to a genuine copy of 8 Pro that I got through school and now every time it boots, note pad opens up and has a smaller window saying "Access denied." I don't see anything funny looking in the start up section of task manager and everything in 7 seemed to be...
For a few months, I'm guessing since around when Win 8.1 came out, "Save As" and the Browse file location icon have been opening Windows Explorer with some programs instead of my default file manger, XYplorer (default by the latter's settings). And the Windows Explorer window that does open is...
Hi, I have bought a sony waio laptop last December. I installed winrar 4.2 64bit. But whenever I open any zipped folder and chose to open a specific file, winrar would extract out that file. Then, instead of opening that file, it would open any random file from the folder in which the zipped...
I have my PC setup to boot to the desktop. When my PC boots to the desktop File Explorer opens up. This just started a couple of days ago. Does anyone know hot to stop File Explorer from opening on boot? Did I do something to make it start doing this? Thanks
I wanted to edit the Hosts file to add something to it. I opened notepad++ and navigated to where it was and I couldn't see the etc directory in windows/system32/drivers/ with the file open in notepad++. I navigate in explorer and right click on hosts and edit with notepad++ and that works fine....
If you go to: Control Panel / and click on the Administrative Tools icon / on my machine, it takes you to the Administrative Tools folder in the File Manager, and shows the 18 Shortcuts Is it like this for everybody? All of the other things in the Control Panel open in a dialog box that is...
I have a small hard drive on my Acer tab, so I want to store my music etc. on a SD card Can I change where my app looks, rather than the default music/ movies folder on my hard drive? Thanks Thommo
Eight Forums Android App Eight Forums IOS App Follow us on Facebook