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

Regex quantifiers {,n} vs. {0,n}?

The help says Take Command / TCC Regular Expression Syntax {,n} at least 0 but not more than n times ({0,n}) Shouldn't all of these give 1? Code: v:\> echo %@regex["ab{0,1}c",abc] 1 v:\> echo...

View Article


How to use *just* the current folder name in a variable

I am in a subfolder. Oh, let's call it: \\mycomputer\c\myfolder\mysubfolder. I want to grab just the subfolder name to set as a variable. In other words, the stuff to the right of the rightmost...

View Article


NTFS Description vs. Enable Descriptions

Hello, Is there a recommendation on using NTFS Description vs the old descript.ion file? Is there any issues to using both simultaneously? Or a reason why you wouldn't turn on both options in TC? And...

View Article

Delete all (non empty) directory with a specific pattern.

I am using TCC 26.02.42. I can list all directories I want to delete with: Code: dir /A:d ::^[0-9a-z]{8}\.[0-9a-z]{3}$ Now I want to delete all this directories: Code: rd /s...

View Article

Blackest Black

I'm using TCC inside TCMD 29 and noticed that "color white on black" doesn't produce an entirely black background. I'm using style Windows Dark and noticed that the area above the tabs is blacker than...

View Article


Where's the User Manual(s)

I've been happy with my old TCmd V11, I've just installed the trial version TCms 29, This v29 is obviously very different from tat old v11 And I can't find the very basic: How & where to use...

View Article

/POS= errors on Win 11

As far as I can tell, the /POS= values for width and height are being ignored on my Windows 11 VM (running under VirtualBox). The first two (x,y) positioning parameters appear to be read correctly, but...

View Article

@upper[] and @lower[] don't like the accented characters

If a string contains accented characters, @upper[] does not write them in capital letters: F:\>echo %@upper[Les élèves français apprennent où placer les caractères accentués] LES éLèVES FRANçAIS...

View Article


How to suppress JSON error messages?

(Using current latest TCMD on Win10 x64) I'm reading variables from a JSON file with Code: SET variable=%@JSONXPATH[/json/test/[1]/element] This works just fine. If the element doesn't exist TCC writes...

View Article


Windows 10 acrobat reader process has no visible window

Hi, I recently installed windows 10 on a new machine. After installing acrobat and tcc I discovered running a reader from a tcc shell does not create a visible window. Running the same executable from...

View Article

TCC Bug??

Hi guys, I've compiled a .btm batch with te latest version of Take Command (v29), and this .btm runs with the latest version of TCC-RT (v29). This is the original .cmd batch: Code: SETLOCAL...

View Article

odd TCMD.INI Error...

I have my old TCAlias.btm in the C: root, still unchanged from my old V11 TCmd. Yet when I open Take command V29 using the desktop ICON I get the followiing errrors Error on line 62 of...

View Article

TCC crashes when copying lots of file data

For a few years now, whenever I try to use TCC/LE to copy large video files, it crashes, with the window simply disappearing mid-copy. Today, I saw a new variation: the same crash occurred when trying...

View Article


Determine where STDOUT is redirected

TCC has the _stdout internal variable, it's purpose being to return 1 if STDOUT points to the console, or 0 if it has been redirected. I would like to know where STDOUT is being redirected to. If there...

View Article

TCMD29 toolbar icon size vs. TCMD28

Just installed TCMD29 on Windows 10 today and found the toolbar icons are not all the larger size as TCMD28 uses. Is there a setting for this that I've missed? You can see some samples of the...

View Article


Filename completion at the beginning of the command line?

TCC/Windows can execute quite a few file types that TCC won't complete at the beginning of a command line. A few are .URL, .XLSM, .OXPS, .PNG, .DOCX, .LNK, .SLN, .CPP. .H. .WMV, .TXT, .LOG. Is there a...

View Article

Write command line to text file

At the command prompt I wish to scan a barcode that may be up to 14 characters in length followed by the enter key (which is programmed into the scanner) and have the text written to a text file such...

View Article


New additions to v29 that I use the most

Here are several new additions to v29 that I am using the most. PRINTF - formatting output has become quite easy with this new command Code: set ppp=%{vb CreateObject("jlcutils.clsmath").ppp(6.59)}...

View Article

SETDOS /X ?

I can't tell what the setdos /x value is so a BTM can work with files with "%" in the name? Code: COMMENT :: RunMe.btm ENDCOMMENT del /a:d /s /e /x /y * Global /H /I /N /Q ( for %fn in (*) Gosub Dofile...

View Article

Numeric variables comparison

Hi guys, this cmd batch works fine if it runs without TCC: Code: @ECHO OFF SET "var_a=8.5" SET "var_b=8.4.9" IF %var_a% LSS %var_b% ( ECHO NOT CORRECT) But If I run it with TCC the result is not...

View Article
Browsing all 1677 articles
Browse latest View live