1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed tcc /k not emulating cmd.exe w double quotes

Discussion in 'Support' started by noahcoad, May 2, 2012.

  1. noahcoad

    Joined:
    Apr 29, 2009
    Messages:
    35
    Likes Received:
    0
    cmd.exe /k ""c:\Program Files\test.bat"" x86
    will run test.bat with the parameter of x86, however the same line does not work with tcc.exe which states:
    TCC: Unknown command "c:\Program"

    Found this as it's tripping up my development team from adopting Take Command. They use the Microsoft Visual Studio 2010 Command Prompt shortcut (attached) installed with VS2010. I've told them tcc.exe is 100% cmd.exe compatible, even down to the bugs, but then this isn't working. Just removing the double quoting is an easy workaround, but it loses confidence in the group so that they're wary of using TCC. :( We're using v13.04.62. Is this something that can be 'fixed' so tcc.exe has the same behavior as cmd.exe?
     

    Attached Files:

  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    10,032
    Likes Received:
    84
    This has to be one of the dumbest of all the CMD.EXE kludges. And given that there's no reason to ever use it (even in CMD.EXE) I'm mystified why people still occasionally reinvent it.

    Several years ago, I had an ugly hack in 4NT to emulate this, but I dropped it a couple of years ago thinking that everyone had finally come to their senses. Apparently not ...
     

Share This Page