Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by Charles Dye

  1. Charles Dye

    TCC seems to only be running DOS commands, but not TCC commands

    I notice that ASSOC returned a filetype of TCMD.Batch, but the filetype you are using in the second command is tcc.batch.
  2. Charles Dye

    am i going crazy? WHY CAN'T I PASS %1 SUCCESSFULLY

    I'm amazed that that's legal!
  3. Charles Dye

    am i going crazy? WHY CAN'T I PASS %1 SUCCESSFULLY

    I am trying to reproduce this behavior: C:\Test>which 7z 7z is an external : C:\Bin\Util\7z.exe C:\Test>type test1.btm @echo off setlocal set USE_7Z=1 set TO_UNZIP=c:\test\test.7z call test2.btm Foo Bar Fum if %USE_7Z eq 1 ( 7z x -aoa "%TO_UNZIP" ) call test2.btm Foo Bar Fum endlocal...
  4. Charles Dye

    am i going crazy? WHY CAN'T I PASS %1 SUCCESSFULLY

    How are you calling 7z.exe? Are you using the full pathname, or a path search? Or maybe an alias?
  5. Charles Dye

    am i going crazy? WHY CAN'T I PASS %1 SUCCESSFULLY

    Is it only batch files, or is there maybe an alias in there somewhere?
  6. Charles Dye

    Detect Windows Terminal

    No, I've never tried those. They might be an idea for v2.0. Or then again maybe not, because.... Yes, and I make it available via a variable. Once in Windows Terminal, always in Windows Terminal, but: the handle can change. Tabs can be split off to a new window, or moved from one WT...
  7. Charles Dye

    Detect Windows Terminal

    Brute force. I scan for new TCC popups and dialogs eight times a second with EnumThreadWindows(). When a new one appears, force it to the front (dialogs sometimes appear under Take Command) and give it focus. If it's offscreen (Console2 does this sometimes), move it where it's visible. When...
  8. Charles Dye

    Detect Windows Terminal

    Not just OPTION. This appears to be true of any dialog opened by TCC in Windows Terminal: the Open dialog, the Save As dialog, @COLOR[], @GETDATE[] and @GETDATETIME[], probably many others. I believe Rex is automatically re-focusing the console window (or the Take Command window) whenever a...
  9. Charles Dye

    Easy way to get the directory where the current TCC.EXE resides?

    If you're feeling terse, you can omit the CDD and the second percent sign.
  10. Charles Dye

    Question about file name completion

    Hunh, so it doesn't. So much for my little theory.
  11. Charles Dye

    Question about file name completion

    SWAG: The filename completion sees a filename beginning with a dot, and assumes it has a relative pathname?
  12. Charles Dye

    Have WHICH say how it located an external program ...

    But only the one under HKEY_LOCAL_MACHINE, not the one under HKEY_CURRENT_USER.
  13. Charles Dye

    Determine if DIRENV is ON or OFF

    And in answer to the question you did ask: After variable expansion, your command becomes either ECHO OFF or ECHO ON. These two words are handled specially by the ECHO command; see HELP ECHO for details. To work around this ancient misfeature, use a period instead of a space to separate the...
  14. Charles Dye

    Determine if DIRENV is ON or OFF

    Not an answer to the question which you asked, but... Have you tried %@option[direnv]? P.S. Note that %@option[direnv] returns "Yes" or "No", not "On" or "Off".
  15. Charles Dye

    SETDOS /i-COMMAND, OPTION dialog, INIfile, unfortunate interaction?

    FWIW, the exact same thing happens if you disable a command with COMMANDS /D WINDOW, then open the OPTION dialog and click OK. This is nothing to do with SETDOS in particular.
Back
Top