Windows 10: Can't Run .Bat Files

  1.    23 Apr 2016 #1

    Can't Run .Bat Files


    I try to run .bat files and the just run in note pad. There is no "open with" option.
      My ComputerSystem Spec


  2. Posts : 4,644
    Win10 Home and Pro, Win10 Insider Preview, WinXP Home Premium, Linux Mint
       23 Apr 2016 #2

    vekben said: View Post
    I try to run .bat files and the just run in note pad. There is no "open with" option.
    Mind posting one .bat file for testing? If it won't post just post the .txt version. I just created a simple .bat file called Time.bat, consists of just 2 lines, date and time, then saved it. Double-clicking ran it. More complicated .bat files can be problematic. Then to be funny I added DIR /O/S to it then a last line with Pause, with a lot of data on the drive it runs for awhile.
      My ComputerSystem Spec

  3.    23 Apr 2016 #3

    I tried different bat files its not something wrong with the bat file. Its windows not knowing what to do with it. I tried going in to regedit to delete the .bat user choice but it still just just opens it in note pad.

      My ComputerSystem Spec


  4. Posts : 1,927
    Windows 10 x86 14383 Insider Pro and Core 10240
       23 Apr 2016 #4

    use the .cmd extension instead of .bat
      My ComputersSystem Spec


  5. Posts : 4,644
    Win10 Home and Pro, Win10 Insider Preview, WinXP Home Premium, Linux Mint
       23 Apr 2016 #5

    vekben said: View Post
    I tried different bat files its not something wrong with the bat file. Its windows not knowing what to do with it. I tried going in to regedit to delete the .bat user choice but it still just just opens it in note pad.

    It's always good to try applications on a different computer or two to see if it is the file or if the problem is with Windows.
    Have you tried Control Panel, Default Programs? This is what mine is:
    Click image for larger version. 

Name:	Associate.png 
Views:	2 
Size:	36.3 KB 
ID:	76390
      My ComputerSystem Spec

  6.    25 Apr 2016 #6

    Hi, have a look here:
    Default File Type Associations - Restore in Windows 10 - Windows 10 Forums
    With that page open CTRL F, then type bat <Return> to find 'bat'- you be able to download a reg file.
    Download it, rt click, and click Merge.
      My ComputerSystem Spec


 

Related Threads
I have a problem with a program not saving preset data. Possibly due to harlink extenstion with only one piece of software. I use symbolic hardlinks on my system but I do not know if the following has any bearing on the issue with the software I...
When I run sfc /scannow, these are the problems that can't be fixed: 2016-04-17 17:10:09, Info CSI 000051ab Cannot repair member file "Snipping Tool.lnk" of Microsoft-Windows-SnippingTool-App, version 10.0.10586.0, arch...
I recently performed a clean installation of Windows 10 after some issues I was having with the PC. The clean install went successfully with no errors along the way. Now, however, I am trying to restore files from the backup I made prior to the...
Even when using disk cleanup in admin account it will say deleted but after restarting and going back into disk cleanup they are back. Even using Windows app they come back after deletion . See screenshot On another note system restore...
When I launch file explorer and get the home view, it is showing a bunch of filenames in Chinese characters (see attached screenshot) which it says are in the desktop folder. However there are no such files when I look at the desktop folder. WTF? ...
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 19:01.
Find Us