Welcome!

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

SignUp Now!

Search results

  1. 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...
  2. 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...
  3. forbin

    How to use the USB (portable) key?

    Joe Caverly to the rescue! As usual.... :-)
  4. 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...
  5. 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:
  6. 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[]...
  7. 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...
  8. 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...
  9. 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...
  10. forbin

    Change Default Prompt

    For some reason it's not letting me upload ELPATH.BTM. Trying again. If it doesn't let me do it separately, I guess I'll have to post it as a code snippet?
  11. forbin

    Change Default Prompt

    Forgot above that the elider is in a separate batch file. Also, you'll need the _SH setter if you want to use ColorPrompt.btm "as is."
  12. forbin

    Change Default Prompt

    This is what some of the prompts look like: The length that triggers an elided path can of course be tweaked in the code. As can the length that it reduces to. I have both of mine set somewhat wide.
  13. forbin

    Change Default Prompt

    Sorry, I thought for sure I had attached it! Tryiing again! [If at first you don't succeed... skydiving may not be the right sport for you...]
  14. forbin

    Grab list of files then pass filenames on the command line

    Yeah, I'd forgotten all about @EXPAND[], and this will handle the majority of cases! Ugh, except at least one: the recursive descent example above. I'll keep digging for an improved way of handling that one case, and I'll post it here for others (if someone else doesn't beat me to it!) Vince...
  15. forbin

    Grab list of files then pass filenames on the command line

    Grab list of files then pass filenames on the command line -- preferably on the same command line! Does anyone know of a convenient "coding metaphor" or pattern for doing the following? Assume I have some external program, for example, a programmer's editor (let's call it "Ed" for...
  16. forbin

    Change Default Prompt

    George: Follow @Charles Dye 's advice. However, let me add to that. I'd recommend that you put your "prompt setter" and your aliases and other things like that in their own separate files. Then use CALL to run those files from TcStart.btm -- except for things like aliases or history, which...
  17. forbin

    Q: Unquoting vars and arrays

    PS: What I wrote doesn't refute @RogerB 's quote: Like I said, regexs are crazy. Just because one knows how to use them doesn't mean one should use them! They're like a peculiar kind of screwdriver: they'll sit in your toolbox largely unused, and they shouldn't be used as a hammer, a...
  18. forbin

    Q: Unquoting vars and arrays

    @x13 - regular expressions ARE crazy, but they're an essential part of the foundations of computer science. They can also be considered an interesting alternative form of programming. I would highly recommend that you get a book on them, dig in, and really learn how and why they work, and how...
  19. forbin

    Design critique wanted: multi-host extended directory search

    Colleagues: I'm hoping for a design critique before I take too steep a leap down the rabbit hole.... I run TCmd off of a portable USB3 hard drive that gets moved between my work PC, my personal laptop, and my family's home PC. That way, I always have the same suite of .BTM files and other...
  20. 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!
Back
Top