1.    30 Jun 2016 #1
    Join Date : Jun 2016
    Posts : 17
    10 pro

    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
    Join Date : Jun 2016
    Posts : 12
    Windows 10 x64

    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.    30 Jun 2016 #3
    Join Date : Oct 2014
    Trnava
    Posts : 2,752
    Windows 10.4 Home 1709 x64

    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
    Join Date : Jun 2016
    Posts : 17
    10 pro
    Thread Starter

    Sorry, what does "@ =" mean?

      My ComputerSystem Spec
  5.    30 Jun 2016 #5
    Join Date : Oct 2014
    Trnava
    Posts : 2,752
    Windows 10.4 Home 1709 x64

    Default, like this:

    [HKEY_CLASSES_ROOT\.bat] @ = "batfile"
    Attached Thumbnails Attached Thumbnails capture_06302016_224523.jpg  
      My ComputerSystem Spec
  6.    30 Jun 2016 #6
    Join Date : Aug 2014
    Forever West
    Posts : 3,913
    Win10 Home and Pro, Win10 Insider Preview, Win7 Home, Linux Mint

    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
    Join Date : Jun 2016
    Posts : 17
    10 pro
    Thread Starter

    Quote Originally Posted by TairikuOkami View Post
    Default, like this:

    [HKEY_CLASSES_ROOT\.bat] @ = "batfile"
    Got it, thanks!
      My ComputerSystem Spec
  8.    30 Jun 2016 #8
    Join Date : Jun 2016
    Posts : 17
    10 pro
    Thread Starter

    Quote Originally Posted by Berton 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
    Join Date : Jun 2016
    Posts : 17
    10 pro
    Thread Starter

    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

 


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 14:51.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums