1. Windows Central Question's Avatar
    Hello. When I create a simple .bat file (to run calculator for example), it will give me an error saying that "filename" is not recognized as an internal or external command. I am 100% sure this happens because there are some symbols before the command "calc". When I right click my .bat file and click on edit, there is just "calc" and nothing else. When I run it, the command prompt run it as "AiLcalc" or something similar to it, so it gives me an error. What to do with this? It happens with every .bat file I try to run.
    -Windows 7 64bit, latest java downloaded

    (I would attach screenshots of how it looks like, but I cannot)
    02-20-2016 04:59 PM
  2. TechFreak1's Avatar
    Hello. When I create a simple .bat file (to run calculator for example), it will give me an error saying that "filename" is not recognized as an internal or external command. I am 100% sure this happens because there are some symbols before the command "calc". When I right click my .bat file and click on edit, there is just "calc" and nothing else. When I run it, the command prompt run it as "AiLcalc" or something similar to it, so it gives me an error. What to do with this? It happens with every .bat file I try to run.
    -Windows 7 64bit, latest java downloaded

    (I would attach screenshots of how it looks like, but I cannot)
    First of all you are going to have to join to attach images to your post, they will show up as attachments on your post. Without seeing your script, we would be playing a guessing game as to what is going wrong.
    02-20-2016 05:43 PM
  3. aubycek's Avatar
    untitled.png Sorry, I didn't really know i could attach images here. Here it is.
    02-20-2016 06:47 PM
  4. TechFreak1's Avatar
    Click image for larger version. 

Name:	Untitled.png 
Views:	5 
Size:	279.9 KB 
ID:	122635 Sorry, I didn't really know i could attach images here. Here it is.



    Hmm, odd.

    Here is mine:
    script-test.png


    Did you install all the cumulative updates?

    One of the earlier cumulative updates made the calculator app crash on start up on my laptop; which was fixed with the following cumulative update.

    Also try everything in lower case, see if that makes a difference?

    Or try a different directory (for launching the .bat).

    Lastly are you on a standard or admin account?
    02-21-2016 05:44 PM
  5. Qtweeder's Avatar
    copy and paste this code, if this doesn't work, then there is some issue at play!

    @echo off
    pushd %WINDIR%\SYSTEM32
    start calc.exe
    popd
    PAUSE
    exit
    02-21-2016 06:10 PM

Similar Threads

  1. 10.0.14267.1002.Solved and Not yet solved issues for Lumia 950
    By abogdan in forum Microsoft Lumia 950
    Replies: 48
    Last Post: 03-01-2016, 12:13 PM
  2. Windows 10 crashes when starting or stopping a video file (not every-time)
    By Windows Central Question in forum Ask a Question
    Replies: 1
    Last Post: 02-22-2016, 07:41 AM
  3. Replies: 1
    Last Post: 02-20-2016, 02:34 PM
  4. Issue with Windows Insider App and Windows Update
    By Manikanta Reddy in forum Windows 10 Mobile
    Replies: 3
    Last Post: 02-20-2016, 06:59 AM
  5. Replies: 0
    Last Post: 02-20-2016, 05:04 AM
LINK TO POST COPIED TO CLIPBOARD