1.    23 Apr 2016 #1
    Join Date : Apr 2016
    Posts : 2
    windows 10

    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.    23 Apr 2016 #2
    Join Date : Aug 2014
    Forever West
    Posts : 3,983
    Win10 Home and Pro, Win10 Insider Preview, Win7 Home, Linux Mint

    Quote Originally Posted by vekben 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
    Join Date : Apr 2016
    Posts : 2
    windows 10
    Thread Starter

    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.    23 Apr 2016 #4
    Join Date : Dec 2013
    Portsmouth Hampshire
    Posts : 1,868
    Windows 10 x86 14383 Insider Pro and Core 10240

    use the .cmd extension instead of .bat
      My ComputersSystem Spec
  5.    23 Apr 2016 #5
    Join Date : Aug 2014
    Forever West
    Posts : 3,983
    Win10 Home and Pro, Win10 Insider Preview, Win7 Home, Linux Mint

    Quote Originally Posted by vekben 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
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,108
    Win 10 Pro (1703)

    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

 


Similar Threads
Thread Forum
Solved Data files not saving correctly [File names but zero byte files]
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...
Software and Apps
Corrupt files (Windows accessory .lnk files)
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...
General Support
Solved Recovering Files from Backup -- Not All Files Restored
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...
Installation and Upgrade
Deletion of temp files and previous installation files not working.
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...
Software and Apps
File explorer chinese files names and phantom files.
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? ...
General Support
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 23:52.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums