Windows 8 and 8.1 Forums


Windows 8.1 .bat file glitched

  1. #11


    Posts : 19
    Windows 8 Pro


    Guys nothing is working, I even reinstalled my entire Operating System, and use the .reg files its still not working, when I go into a command promp and type assoc .bat it comes up as .bat=batfile so something else is going on!

      My System SpecsSystem Spec

  2. #12


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    You can associate BAT files with Command.Com in the area in Controil Panel where you set file associations, I have BAT able to be opened by Notepad, but by default they open with command.com
      My System SpecsSystem Spec

  3. #13


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    .reg files by default open with Regedit, just set the associations, or right click on the file, choose Open With, go all the way down to the bottom, and choose Use Another Program, then find Regedit.exe and then it will be set.

    Do the same thing for the BAT files, tell it to use Command.Com.
      My System SpecsSystem Spec

  4. #14


    Posts : 19
    Windows 8 Pro


    Quote Originally Posted by XweAponX View Post
    .reg files by default open with Regedit, just set the associations, or right click on the file, choose Open With, go all the way down to the bottom, and choose Use Another Program, then find Regedit.exe and then it will be set.

    Do the same thing for the BAT files, tell it to use Command.Com.
    Where Do i find Command.com?
      My System SpecsSystem Spec

  5. #15


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    Should be in the Windows\System32 folder- Sorry, it's CMD.exe now.
      My System SpecsSystem Spec

  6. #16


    Posts : 19
    Windows 8 Pro


    Quote Originally Posted by XweAponX View Post
    Should be in the Windows\System32 folder- Sorry, it's CMD.exe now.
    Oh, I have tried this but it wont let me.
      My System SpecsSystem Spec

  7. #17


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    Hm - Ok, maybe it is something else, I just checked on my machine and it says "Unknown application" - I'll have to search my registry, hold on...

    Ok, merge this:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\.bat\PersistentHandler]
    @="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
    Copy that, into Notepad and save it as "Bat.reg" then merge it into your Reg, then try a batch file.

    If it don't work, open Regedit and search ".bat" - check all the search boxes, and take a look at the entry, post it here if you can

    found another entry, merge this too:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat]
    
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat\OpenWithList]
    "a"="cmd.exe"
    "b"="NOTEPAD.EXE"
    "MRUList"="abc"
    
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat\OpenWithProgids]
    "batfile"=hex(0):
    
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat\UserChoice]
    "Progid"="batfile"
    "Hash"="wiTiIvgOnbg="
      My System SpecsSystem Spec

  8. #18


    Posts : 19
    Windows 8 Pro


    Quote Originally Posted by XweAponX View Post
    Hm - Ok, maybe it is something else, I just checked on my machine and it says "Unknown application" - I'll have to search my registry, hold on...

    Ok, merge this:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\.bat\PersistentHandler]
    @="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
    Copy that, into Notepad and save it as "Bat.reg" then merge it into your Reg, then try a batch file.

    If it don't work, open Regedit and search ".bat" - check all the search boxes, and take a look at the entry, post it here if you can

    found another entry, merge this too:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat]
    
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat\OpenWithList]
    "a"="cmd.exe"
    "b"="NOTEPAD.EXE"
    "MRUList"="abc"
    
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat\OpenWithProgids]
    "batfile"=hex(0):
    
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat\UserChoice]
    "Progid"="batfile"
    "Hash"="wiTiIvgOnbg="
    None of these work for me
      My System SpecsSystem Spec

  9. #19


    Sloe Deth, Californicatia
    Posts : 3,908
    Windows 8 Pro with Media Center/Windows 7


    I'm using Windows 8, but the registry should be similar, when you search for ".bat" in redeit, there should be only 2 entries, the ones I showed, do you have another one? Do a full search for ".bat" in regedit, paste the results here for any one that looks totally different than the ones I posted. (Or, maybe I missed one).

    I'll do some more checking.

    This may explain why they are not starrting when you click on them:

    batch - Repair BAT file association (to make it start again) - Super User

    I found this too on our sister site:

    Default File Type Associations - Restore - Windows 7 Help Forums[2]=File
      My System SpecsSystem Spec

  10. #20


    Posts : 22,565
    64-bit Windows 10


    Not sure if that's going to help since merging the .reg file for the listed .bat option posted below would have reset all of that to default, and 99lool said it made no difference. Not sure how it wouldn't have though, so something else must be going on.

    Windows 8.1 .bat file glitched


    99lool,

    Do you have a restore point dated before all this happened available?
      My System SpecsSystem Spec

Page 2 of 6 FirstFirst 1234 ... LastLast
Windows 8.1 .bat file glitched
Related Threads
Windows 8.1 File History File Duplication in Performance & Maintenance
Hi Gang! In Windows 8.0 File History, it had the nasty habit of duplicating your library files on your backup ( in my case, my external USB backup drive ( Replica 2 Terabyte ). :sarc: By DUPLICATING, I mean they get copied over and over and over again... This happens to ALL of them, even...
Repairing a glitched up HDD in Installation & Setup
Hello, My Wife's Laptop Hard drive went belly up. It is a "Momentus 750GB hybrid drive. I moved it to my desktop PC and ran "7-data Partition Recovery" on it. After several days and hours of work. I now have what appears to be the entire recovered HD approx 700GB of file data on an external...
Hi guys1 I'm about to create a .reg file that will set path in registry to my own icon for specific file extensions. E.g. I want my own icon as a default icon for .ini extension. And not only for one extension but for more of them, in a single .reg file. As always I don't want to mess it up,so I'm...
How to Restore Previous Versions of your Files with File History in Windows 8 and 8.1 File History is a new feature introduced in Windows 8 that automatically backs up files that are in your libraries, contacts (C:\Users\(user-name)\Contacts), Internet Explorer favorites...
Ok, I don't know how I did it but I got both Windows 7 File Recovery and Windows 8 File History active at the same time. I upgraded from Win 7 to 8 Pro and transferred settings so win 7 file recovery was already active, when I tried to turn on win 8 file recovery I got a message saying I cant...
I tried searching it on Google but didn't find anything, the backup file created in XP and Win7 is saved with .bkf file extension, I want to know the same for the file history in Windows 8, what's the extension or the files are simply saved in the same directory structure with same file...
Hey guys, please bear with me. I done messed up! I had a windows 8 partition running successfully. I now cannot boot into windows as the computer (and my linux live cd) wont recognize my main partition and it shows up as 'unallocated space'. Here is how I made this mess: -I used EaseUS partition...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook