Windows 8 and 8.1 Forums


commands not recognized internal/external.. need help!

  1. #1


    Posts : 52
    windows 8.1 and server 2012 R2

    commands not recognized internal/external.. need help!


    need some help here this is driving me crazy lol. using windows 8.
    I have being using my windows for a very long time and its all setup, only thing that really doesn't work is making customized .bat file and try to run it, always giving me "is not recognized as an internal or external command."

    now I have tried the same .bat file and works on another machine on a fresh install but fresh install windows is not an option on this one as I have way too much stuff done already.

    this is whats in the a.bat file:
    "taskkill /F /IM Steam.exe"

    it is a simple straight forward taskkill of a software that would work and I don't need to set path as it is built in default into windows. if I type the full command "taskkill /F /IM Steam.exe" this under ANY directory in windows, any drive, it will kill steam.exe.

    however if I were to run .bat file this is what I get:

    Click image for larger version

    Click image for larger version

    as you can see above it doesn't recognize the command because it seems theres something or some "unknown letters" infront of t for taskkill. by changing taskkill to saskkill, it also shows those unknown letter is infront of s, so this actually is applying to every single of my .bat file and I am unable to run them. only way again is for me to type out entire command which is quite annoying as I can't make any shortcuts.

    also, as you guys can see in the pictures, the slash is replaced with japanese symbol that is because I am using japanese system locale and no, switching back to english default language and locale still doesnt solve the problem..

    please help, I am at wits end and can't seem to find any similar issue to mine on google.



    solved, look at screenshot below. use notepad++ to change encoding and it'll work. or use the "echo" function below to create a clean .bat file.

    Click image for larger version
    Last edited by m18xr2; 07 Oct 2015 at 01:19.

      My System SpecsSystem Spec

  2. #2


    Posts : 2,130
    Windows 8.0 x64


    What happens if you just type in the command instead of running the batch?

    I know in command prompt there can be issues with the code page. But I don't know enough about it to advise you. Perhaps another poster will have more specifics.
      My System SpecsSystem Spec

  3. #3


    Posts : 52
    windows 8.1 and server 2012 R2


    Quote Originally Posted by MilesAhead View Post
    What happens if you just type in the command instead of running the batch?

    I know in command prompt there can be issues with the code page. But I don't know enough about it to advise you. Perhaps another poster will have more specifics.
    hey, if i type just the command it will work. but if i were to create a .bat file then this happen, on every single bat file i create and i seriously have no idea why.
      My System SpecsSystem Spec

  4. #4


    Posts : 2,130
    Windows 8.0 x64


    Try changing the extension from .bat to .cmd.
      My System SpecsSystem Spec

  5. #5


    Posts : 52
    windows 8.1 and server 2012 R2


    Quote Originally Posted by MilesAhead View Post
    Try changing the extension from .bat to .cmd.
    tried that still no luck. still giving me same results as the screenshot haha.
    would this be something to do with windows itself or some sort of service within windows?
      My System SpecsSystem Spec

  6. #6


    Try doing the following from a Command Prompt.

    Type echo "taskkill /F /IM Steam.exe" > a.bat and press Enter.

    Now run a.bat and see what happens. Trying to figure out if the corruption is occurring on the creation of the .bat file or on the execution.
      My System SpecsSystem Spec

  7. #7


    Posts : 52
    windows 8.1 and server 2012 R2


    Quote Originally Posted by Ztruker View Post
    Try doing the following from a Command Prompt.

    Type echo "taskkill /F /IM Steam.exe" > a.bat and press Enter.

    Now run a.bat and see what happens. Trying to figure out if the corruption is occurring on the creation of the .bat file or on the execution.
    holy smoke it worked. what does that command work? "echo "taskkill /F /IM Steam.exe" > a.bat" and what does this mean theres corruption somewhere and do I have to do similar thing for all my other .bat files as well?


    this is new thing i did, looks like I might have to do this for every .bat just to make sure it works, still wayyy better than not able to run the file at all. i have a.bat and a.cmd with same information but the new command you made me type is now a.bat, a.cmd is the old one i simply rename the file.

    Click image for larger version

    edit: so maybe creating .bat file with notepad.txt and changing extension isn't such a good idea afterall.. is that the cause?
      My System SpecsSystem Spec

  8. #8


    Posts : 2,130
    Windows 8.0 x64


    I believe Notepad uses what they call a BOM or byte order mark. Ansi uses single byte characters so that problem doesn't come up. But with multibyte characters such as used in Unicode this can arise.

    Try a different editor such as EditPad Lite 7. It is free.
      My System SpecsSystem Spec

  9. #9


    Posts : 52
    windows 8.1 and server 2012 R2


    Quote Originally Posted by MilesAhead View Post
    I believe Notepad uses what they call a BOM or byte order mark. Ansi uses single byte characters so that problem doesn't come up. But with multibyte characters such as used in Unicode this can arise.

    Try a different editor such as EditPad Lite 7. It is free.
    yea you're right, found the problem is with encoding issue. a.cmd and a.bat have same content but the sizes are different. cmd is like 56 bytes where as .bat was like 26, only half the size. I used notepad++ to compared difference and found it was encoding, after switching encoding solved everything lol.
      My System SpecsSystem Spec

  10. #10


    Posts : 2,130
    Windows 8.0 x64


    Glad you got it straightened out.
      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
commands not recognized internal/external.. need help!
Related Threads
I have a Dell XPS L521x with Intel 4000 graphics as well as Nvidia GeForce GT640M. I currently only have one external display using the display port and I want to get a 2nd external monitor but I'm not sure if I can. I have read elsewhere that Intel 4000 graphics only supports up to two displays...
My device - asus vivotab smart LTE - ME400CL microSD - transcend 64gb sdxc u1 ok, the prob is that, i guess in ALL win8 tabs, microSD cards come up as 'removable' in 'my computer' ....this puts lotza restrains which u would kno i've tried mounting it as c:\sd if u kno i mean... it does...
I work for a company that uses multiple servers both internally and externally. We have some servers on-site that are occasionally moved to off-site collocation servers in order to test fail-over protocols. However, when the servers are moved the IP addresses change and our NOC team updates the DNS...
External HD not recognized in Drivers & Hardware
My Seagate GoFlex 500 isn't showing up in Windows. Disk Management sees it, but there's no feasible option there. It's not a blank drive, so I can't make a new simple volume, only delete it. I have important data on there. What gives?
I keep two external drives as backups (ok, maybe overkill, but 40 years in IT makes me uber-cautious), both 500GB USB 2.0. I use a USB hub for them, printer, flatbed scanner, etc. Clicking on Win8's 'computer' to see connected devices will initially ONLY show ONE of the drives - I have to...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook