problem executing cmd files

Discussion in 'other software & services' started by WSFuser, May 16, 2008.

Thread Status:
Not open for further replies.
  1. WSFuser

    WSFuser Registered Member

    Joined:
    Oct 7, 2004
    Posts:
    10,639
    When I double-click them, then dont execute their commands and when I open the batch file from a command window, I get:
    Code:
    C:\>■t
    '■t' is not recognized as an internal or external command,
    operable program or batch file.
    Whats wrong?
     
  2. markymoo

    markymoo Registered Member

    Joined:
    Sep 25, 2007
    Posts:
    1,212
    Location:
    England
    something may of deleted your cmd.exe but goto Start\Control Panel\System\Advanced\Environmental Variables and check the Comspec is pointing to cmd.exe.
     
    Last edited: May 16, 2008
  3. WSFuser

    WSFuser Registered Member

    Joined:
    Oct 7, 2004
    Posts:
    10,639
    Yes Comspec is pointing to cmd.exe
     
  4. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,224
    Hello,
    When you say cmd files, do you mean files that have the cmd extension? Or files that you try to run on the command line?
    Mrk
     
  5. WSFuser

    WSFuser Registered Member

    Joined:
    Oct 7, 2004
    Posts:
    10,639
    Files with the extension "cmd".
     
  6. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,224
    Hello,
    Is this a customized Windows? nLited?
    Did you disable the scripting host etc?
    Mrk

    P.S. This a first-timer or something that once worked and now doesn't?
     
  7. WSFuser

    WSFuser Registered Member

    Joined:
    Oct 7, 2004
    Posts:
    10,639
    Yes its nLited and scripting host is not disabled.

    I have not had this problem before.
     
  8. WSFuser

    WSFuser Registered Member

    Joined:
    Oct 7, 2004
    Posts:
    10,639
    I found the problem: when creating the batch file in Notepad2, I had saved it as unicode.

    Saving it as ANSI makes it work again.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.