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 forbin

  1. forbin

    C++/CLI doesn't support lambda expressions

    C++ is very powerful but it is quite a bit older than C# and its syntax and language model is hampered by the fact that one of its original design goals was to be "as upwardly compatible as possible" with C. They eventually discarded that, but a lot of those limitations remain. C# also had the...
  2. forbin

    Replace CTTY in old .BTM

    You mean, other shell languages? It depends on the language. Generally in Linux/Unix BASH or TCSH the redirect is at the end of the line, but I bet I could find a counterexample or two. Every one of these languages has its own (sometimes bizarre) quirks. One of the reasons I like TCmd so...
  3. forbin

    Detecting a forced windows restart

    Hi folks, it's been a LONG time since I've been here! Topic: How to detect (and log) when another application forces a windows restart? Scenario: I work heavily in my privately licensed copy of TCmd in my job as software engineer. I have it set up so that my command log has in it only "major"...
  4. forbin

    Addition using only bit manipulation

    @Joe Caverly - if you like this kind of exercise and you like old HP calculators, try looking at the user forum at The Museum of HP Calculators (The Museum of HP Calculators). They post exercises like this in the forum there all the time! If you don't have an HP calculator handy -- first...
  5. forbin

    Moving Registration to New Work Laptop

    That's wonderful! I will do that! (And I have a later license, so I need to just carve some personal time out to get things sorted out and ensure my personal laptop, desktop, and work machines are moved to v24+.)
  6. forbin

    Moving Registration to New Work Laptop

    My employer just recently issued me a new laptop, and unfortunately -- once again -- I seem to have gotten things wrong when upgrading from one machine to another. I run v22 on my work laptop, and have a different version on my personal laptop (AFAICR... been a while since I've booted it up)...
  7. forbin

    Disable line wrap in TCC window?

    @David_Wolfe - there are a couple of options that you could use to maybe accomplish something close to what you want: Pipe to VIEW Diddle the registry directly. By piping to the VIEW command, you can easily turn word wrap on/off and do a lot of other things. That's what I would more strongly...
  8. forbin

    TCC, Bash, and Shebang!

    I have an interesting puzzle to solve. We use "Git for Windows" and "Git Extensions" for our source code control. Those install MinGW64 and Cygwin so that they have a very Linux-like environment available to them. I want to write some hooks and additional utilities, but I don't want to write...
  9. forbin

    How to use the USB (portable) key?

    Joe Caverly to the rescue! As usual.... :-)
  10. forbin

    How to use the USB (portable) key?

    Uhh.... I've finally gotten around to updating my portable drive to TC v28. And I've forgotten how to get it to recognize the USB portable key file! Derp... derp... derp... I've generated the key file and it's in my F:\JTB\TCmd_v28 directory (where TC is installed). But when I start it...
  11. forbin

    How to? Use LIST to list all files that FFIND found

    So, you want to list the content of the files that contain "stuff to look for", without getting other files, is that correct? If so, you can do it with the clipboard; note that @CON: doesn't work here. (ffind /s /b /t"stuff to look for" *.py > CLIP:) & list @CLIP:
  12. forbin

    DIR output is backwards, any way to change it?

    I just tripped over this again and realized I made it sound harder than it actually is. Have the BTM file iterate over all the filenames (wildcard expanded) from the command line. Keep the longest width, then build a PDIR command string in a variable and execute it via @EXEC[] or @EXECSTR[]...
  13. forbin

    DIR output is backwards, any way to change it?

    If you want to be ambitious, you can write a BTM file that caches the file information in one or more arrays in memory, keeping track of the maximum filename width as you go, and then generates the output lined up accordingly. 15-20 years ago, I would have probably written it and posted it...
  14. forbin

    Interesting TPIPE sort algorithm artifact

    :smile: Not necessarily. Say, for example, that I am given a mailing list. I don't want to completely reformat it (if I did, I'd probably use AWK). But the order of the entries is entirely random. And the field order is: Firstname,Mid,Lastname,Address,City,State,Country,PostalCode So, by your...
  15. forbin

    Change Default Prompt

    Sigh... :: ELPATH.BTM :: For author, licensing, revision history, see the end of file. @LOADBTM ON @echo off SETLOCAL :: If not manually set by the user, set max prompt path length to a little more :: than half the current width of the screen. If PL is negative, assume we want :: (screen...
Back
Top