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

Recent content by forbin

  1. forbin

    Corruption from FFIND?

    Ah HA! Something similar happened to me a few weeks back, but I didn't remember the details of what I had done so I couldn't reproduce it. It didn't happen again, so, while mystifying, it fell "off my radar." Mystery solved!
  2. forbin

    Quoting?

    Interesting discussion! How would I rewrite the following to get rid of @execstr? alias wview=view %@EXECSTR[which2 /q %$] This alias lets me type C:\> wview SomeBatOrProgName and it opens up a view of whatever file would have been executed. (I use an external "which" command, which2.exe...
  3. forbin

    Strange handling of [nonbright] magenta background (v22)

    UPDATE: On a strange hunch, I shut down all instances of TCC and TCMD, renamed my TCMD.INI file to TCMD.INI.SAVE, and restarted. Then I manually went through the dialogs and set things up from scratch. Problem solved. So there's an obscure bug somewhere in legacy INI settings handling... which...
  4. forbin

    Strange handling of [nonbright] magenta background (v22)

    Running: TCC 22.00.41 x64 Windows 7 [Version 6.1.7601] TCC Build 41 Windows 7 Build 7601 Service Pack 1 I'm observing strange behavior in using the (non-bright) magenta background for text in Take Command, both when using SCRPUT and when using ANSI control sequences. Example: > SCRPUT...
  5. forbin

    Deepest First

    Oops! Forgot all about the follow-up once I got it working. Here's the finished product; hope it helps someone when they need it! Enjoy!
  6. forbin

    Deepest First

    Hahaha! But sometimes, they are! C:\Dir\Whatever> TREE /b
  7. forbin

    Deepest First

    Hmm. DIR /a:d /s /f gets the intermediate directories but picks up "." and "..". Adding /h makes it lose the intermediate directories. Funny, I've been using JpSoft products since the days of 4DOS and I never noticed that! Thinking aloud here, I can easily strip out the dots. But that leaves...
  8. forbin

    Deepest First

    That's pretty good, but it has a slight flaw. The DIR command will output only the leaf directories. For example, it would have a line for "C:\Users\Name\My videos" and "C:\Users\Name\Documents" (if those had no nested subdirs), but would not show a line containing only C:\Users\Name (assuming I...
  9. forbin

    Deepest First

    I'm definitely going to at least rewrite it as a BTM, using the approach you suggested. I just now mistyped a command using the alias implementation, and it wouldn't break in the middle for me. Fortunately, it was only a minor thing and no harm done, but it was a warning call: get rid of the...
  10. forbin

    Deepest First

    I've got a small alias, "deepestFirst", that I probably should bulletproof before it goes off the rails and kills something! It's defined as: deep*estFirst=`for /L %ii in (32,-1,0) do (set ret=%@EXEC[ global /h /i /S+%[ii] /S%[ii] %$ ] )` Its purpose is to allow executing a command (or group)...
  11. forbin

    Optional ANSI(32|64).dll for Win 10 >= Creators Update

    Here is the list from Microsoft regarding the internal version numbers: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832%28v=vs.85%29.aspx Notice, however, what they said about manifests, which has to do with how an application is built. I would assume that later versions of...
  12. forbin

    Optional ANSI(32|64).dll for Win 10 >= Creators Update

    PS: as I mentioned on another thread, I've found a workaround, at least for pre-v21 versions of TakeCommand. This reduces the urgency of the requested feature. I still think it would be a good feature to have, because the user might not want to disable ALL of Windows 10's ANSI support, which...
  13. forbin

    Take Command (Environment) doesn't show v2 ANSI colors

    Mine definitely is. However, I've found a workaround! It turns out that you can disable ANSI processing within Windows 10 Creator, using a registry setting. In HKEY_CURRENT_USER\Console, there is a REG_DWORD setting called "ForceV2". Set it to zero and reboot. Restart TCmd or TCC and...
  14. forbin

    Optional ANSI(32|64).dll for Win 10 >= Creators Update

    My laptop just finished updating to "Crater" edition :eek: a couple of days ago, and it is now interfering with my fancy prompt and some of my "dressier" batch files. Rex, please do add a switch that causes TCmd / TCC to stop using the new built-in Windows ANSI support, and override it with the...
  15. forbin

    Useful short aliases

    My version of "math" is called "dc" like in Unix (dc = desk calculator)... it repeats the expanded version of what you entered, plus a formatted EVAL: dc=`echo %=t %$ = %@COMMA[%@eval[%$]]` For C/C++ programmers who are always jumping between related directories, the following set is useful...
Top Bottom