Windows 10: Batch files won't run, open editor instead Solved

  1.    30 Jun 2016 #1

    Batch files won't run, open editor instead


    Somehow (most likely my fault) .bat files have defaulted to opening my text editor (UltraEdit) instead of executing.

    I took all the file associations out of UltraEdit and re-started - no change

    I followed internet advice to remove

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.b*​at\UserChoice

    and re-started - no change

    I uninstalled UltraEdit and restarted - .bat's still try to open UltraEdit but can't find it.

    Help
      My ComputerSystem Spec

  2.    30 Jun 2016 #2

    Try this :
    Delete any entries under the OpenWithList subkey
    or
    Take a backup of your regkey and delete the entire ".bat" key not only UserChoise subkey
      My ComputerSystem Spec


  3. Posts : 2,278
    Windows 10.3 Home 1703 x64 (Home per choice)
       30 Jun 2016 #3

    Code:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat]  (if present: remove "UserChoice")
    [HKEY_CURRENT_USER\Software\Classes\.bat]  (if present: @ = "batfile")
    [HKEY_CURRENT_USER\SOFTWARE\Classes\batfile]  (if present)
    [HKEY_CURRENT_USER\SOFTWARE\Classes\batfile\shell]  (if present: @ = "open")
    [HKEY_CURRENT_USER\SOFTWARE\Classes\batfile\shell\open\command]  (if present: @ = "\"%1\" %*")
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.bat]  @ = "batfile"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell]  @ = "open"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\open\command]  @ = "\"%1\" %*"
    [HKEY_CLASSES_ROOT\.bat]  @ = "batfile"
    [HKEY_CLASSES_ROOT\batfile]
    [HKEY_CLASSES_ROOT\batfile\shell]  @ = "open" [HKEY_CLASSES_ROOT\batfile\shell\open\command]  @ = "\"%1\" %*"
    Source: How do I restore .bat files association with the system (make them run when double-clicked)?
      My ComputerSystem Spec

  4.    30 Jun 2016 #4

    Sorry, what does "@ =" mean?

      My ComputerSystem Spec


  5. Posts : 2,278
    Windows 10.3 Home 1703 x64 (Home per choice)
       30 Jun 2016 #5

    Default, like this:

    [HKEY_CLASSES_ROOT\.bat] @ = "batfile"
    Attached Thumbnails Attached Thumbnails capture_06302016_224523.jpg  
      My ComputerSystem Spec


  6. Posts : 3,201
    Win10 Home and Pro, Win10 Insider Preview, Win7 Home, Linux Mint
       30 Jun 2016 #6

    Since UltraEdit is a third-party software/program and free, I'd get rid of it and see if the file association for .bat gets restored or can be restorede.
      My ComputerSystem Spec

  7.    30 Jun 2016 #7

    TairikuOkami said: View Post
    Default, like this:

    [HKEY_CLASSES_ROOT\.bat] @ = "batfile"
    Got it, thanks!
      My ComputerSystem Spec

  8.    30 Jun 2016 #8

    Berton said: View Post
    Since UltraEdit is a third-party software/program and free, I'd get rid of it and see if the file association for .bat gets restored or can be restorede.
    If you read the post you'll see I already did all that.
      My ComputerSystem Spec

  9.    30 Jun 2016 #9

    Fixed! Special thanks to TairikuOkami for the list, I think the problem was [HKEY_CURRENT_USER\Software\Classes\.bat which was the only one with a link to UltraEdit
      My ComputerSystem Spec


 

Related Threads
Hi guys, Is there a reg/batch script or group policy to turn off this annoying screen in Windows 10? 71799 I know it can be disabled somewehre in IE options but I need it to be a a script or something.
How do I create a batch file to convert all of my iPod Photo Cache all at once to jpeg. I have SmartIV ImageZipper Image Converter 1.0.2. I have read how to use other software to do this but I can't figure out the command with this software. I have...
Batch Rename Deletes Files in Performance & Maintenance
Hey all, I just upgraded to Windows 10 last night, and I've been playing around with the new File Explorer. One thing I tried was the batch rename function (by which I mean just selecting multiple files and clicking "rename"). I quickly realized...
Chaps... I have a desktop running with a few apps 24/7 feeding to a network, on the rare occasion it drops or restarts due to some update or power outage I thought I could write a simple batchfile just to restart everything automatically. ...
Have upgraded to Windows 10 from 7. The Coffeecup HTML Editor is now slow to open. The box which says do you wish to allow this app to make changes to your computer comes up quickly. Then the circle and cursor start to shudder and it takes 12...
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 08:56.
Find Us