Quantcast
Channel: Take Command / TCC
Browsing all 1677 articles
Browse latest View live

TYPE, HEAD, TAIL: add an option to display filenames

Because all three take wildcards. I suggest /H — unused in all three, and can stand for header.

View Article


Examples in Help for Functions @UNQUOTES and @UNQUOTE Fail

The commands below were copied from the help and generate syntax errors. Given the descriptions of what those functions are supposed to do, it's not clear to me what the problem is . This is either a...

View Article


SETLOCAL: don't record directory changes in batch files

I just figured out that directory changes in batch files are "recorded" in the directory history and for use with cd - and cdd -. I've been annoyed by that in the past but hadn't figured out what was...

View Article

SOLVED: Request: @STRIPANSI[] function

This one is killing me because TCC doesn't have regex substitution that I know about, and I'd rather not rely on sed. I just want to be able to do: Code: set CLEAN_TITLE=%@STRIP_ANSI[%title_with_ansi]...

View Article

Image may be NSFW.
Clik here to view.

%@LEN[emoji] is 1 but i want it to be 2 — is there something to do this?

How can I accurately measure the width of a string, if %@LEN[] returns 1 for double-wide characters? I stumbled upon this “bug” when i noticed the code to wrap long lines on my bigecho.bat (echo but in...

View Article


May we have a %@WIDTH[] that is like %@LENGTH[] but is display width instead...

I hear there is an internal function for this, but no one’s ever asked for it to be exposed before. I’m doing advanced cosmetic things with ANSI and emoji. One thing I’m doing is double height text....

View Article

Image may be NSFW.
Clik here to view.

@SELECT still not working as expected

Now - with the last version of TCC - the answer of a normal iteration is as below, instead of 16 lines and 31 columns.

View Article

Line continuation

I have a problem with line continuation and alias. It seems to happen only when using aliases. This code will show the error: Code: @Echo OFF Alias SetVar=DO F in /L %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9...

View Article


If a plugin modifies its command line and returns 0xFEDCCA98?

What if If a plugin modifies its command line and returns 0xFEDCCA98? If that causes an internal to be called, does the internal get the modified command line or the original one?

View Article


Activate the TCMD Help Window

I have a script called POSITION that activates specified windows and sets them to specified positions and sizes. However, I cannot figure out how to get the ACTIVATE command to access the help window,...

View Article

Charles Dye's plugins have moved

Recent firewall changes (beyond my control) have made prospero.unm.edu inaccessible to 99.999% of humanity. So I have moved my plugins to a new server: Plugins for Take Command Please let me know of...

View Article

Automatic Translation

Ich wollte eine Nachricht mit Beispielcode posten, aber die automatisch Übersetzung hat den Code auch übersetzt. So wurde aus SET der Begriff gesetzt, was ja kein gültiger TCC Befehl ist Wie kann ich...

View Article

When the array name is in a variable ...

When the name of an array is in a variable, manipulating the array is a little tricky. The help might benefit from an example. Here's a fairly simple one. Code: :: swap ith and jth entries of the array...

View Article


random option for for loops? /m?

Could we please have an option that processes the items in a for loop in random order? There’s an infinite # of use cases for this, but to put it the most abstract terms possible: Say you have a list...

View Article

converting an alias to use a Pipe

alias trim_filename=del e:\C\fred_x.bat > nul & touch/c e:\C\fred_x.bat >nul & dir/s1/a-d/b e:\%1\.* >> e:\C\fred_x.bat & for in (@e:\C\fred_x.bat) do if NOT ISDIR %x echo...

View Article


inkey counter anomaly?

I use the following code within a btm - however it can be executed stand alone too of course: Code: inkey /k"cq" /w5 /T "c": continue; "q": quit ("c" after 5 seconds): %%key Now, If I press 2 times an...

View Article

Problem with mouse

With the last versions of TCMD 33.00.17 and 33.00.18 I can't use the mouse in TCMD. When I click in the tab the content of the tab becomes plain gray; I can't select text nor double-click. This seems...

View Article


Image may be NSFW.
Clik here to view.

[v33.00.16] TCMD german tab menu entry "missing"

In [v33.00.16] of TCMD I discovered the following "missing" german tab menu entry:

View Article

Preserve font size when changing monitor DPI

I have a laptop with a 240 DPI screen connected to a 96 DPI external monitor. I normally run Take Command on the external monitor. If I shut down Take Command and Windows, disconnect the external...

View Article

Non-ASCII characters display incorrectly in FOR loops, but only if the parens...

I’m moving towards changing my quotes and apostrophes to smart quotes and smart apostrophes, which aren’t drawn correctly in web browsers but are drawn very correctly in the console and easier for me...

View Article
Browsing all 1677 articles
Browse latest View live