1. Joined : Jun 2016
    Posts : 17
    10 pro
       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 System SpecsSystem Spec


  2. Joined : Jun 2016
    Posts : 12
    Windows 10 x64
       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 System SpecsSystem Spec


  3. Joined : Oct 2014
    Trnava
    Posts : 1,738
    Windows Home 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 System SpecsSystem Spec


  4. Joined : Jun 2016
    Posts : 17
    10 pro
       30 Jun 2016 #4

    Sorry, what does "@ =" mean?

      My System SpecsSystem Spec


  5. Joined : Oct 2014
    Trnava
    Posts : 1,738
    Windows Home 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 System SpecsSystem Spec


  6. Joined : Aug 2014
    Forever West
    Posts : 2,608
    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 System SpecsSystem Spec


  7. Joined : Jun 2016
    Posts : 17
    10 pro
       30 Jun 2016 #7

    TairikuOkami said: View Post
    Default, like this:

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


  8. Joined : Jun 2016
    Posts : 17
    10 pro
       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 System SpecsSystem Spec


  9. Joined : Jun 2016
    Posts : 17
    10 pro
       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 System SpecsSystem Spec


 


Similar Threads
Thread Forum
Solved Reg/batch to disable "Open File - Security Warning"
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.
General Support
I need to create a batch file to convert my iThmb files
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...
Software and Apps
Batch Rename Deletes Files
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...
Performance & Maintenance
App doesnt open through a batch file
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. ...
Software and Apps
Coffeecup HTML Editor Slow to Open
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...
Software and Apps
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 20:51.
Find Us
Twitter Facebook Google+



Windows 10 Forums