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,632
    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,632
    Yes Comspec is pointing to cmd.exe
     
  4. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    8,695
    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,632
    Files with the extension "cmd".
     
  6. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    8,695
    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,632
    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,632
    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.
     
Loading...
Thread Status:
Not open for further replies.