@FORMAT (commas in string) inside @IF?
I spent a couple hours figuring out a bug in a BTM and it boils down to this. This works as expected. This works differently. The comma between xxx and yyy is being seen as belonging to @IF but the...
View ArticleCapturing printf output
Code: _x64: 1 _admin: 1 _elevated: 1 TCC 30.00.22 x64 Windows 10 [Version 10.0.19044.3086] BuildNumber Caption CSDVersion OSArchitecture Version 19044 Microsoft Windows 10 Pro 64-bit 10.0.19044...
View Article4console plugin no longer available
Hi. It looks like 4console plugin won't download in firefox, chrome or edge. Fortunately, I was able to use curl to get it. Perhaps it would be better to have the link changed to use http or https...
View Article@IF Function
The documentation for the @IF function specifies the syntax @IF[condition,string1,string2] It seems that the following syntax also works. @IF[condition,string1] The third argument is not just blank; it...
View ArticleLooks to Me Like a Bug in @WORD
TCC(30.00.22): C:\>echo /%@word["^c",1,word0, ,word2]/ / / TCC(30.00.22): C:\>echo /%@word["^c",1,word0,,word2]/ /word2/ Click to expand... The first line contains a space between the two...
View Articlemouse slowdown when using list
TCC 29.00.17 x64 (sorry haven't tried 30 yet) I started using the internal list command because it actually renders ANSI color which is really nice! Yay! But oh no! Lots of mouse lag. Felt like the...
View Articleunzip files with umlauts
Hello, im using the integrated unzip function from TCC, but contains the Zip-Source-File any Files with German Umlauts so show the Extraction Process, but dont extract this Files to Target and finished...
View ArticleMulti-line UDFs
[A bit of smoke and mirrors here!] When you load functions with FUNCTION /R line continuations (^) are respected. This lets you (at least in a sense) define multi-line UDFs (example far below). Notes:...
View Articlehighlight.bat - does exactly what it says, highlights text. Grep-ish...
It's easy to hightlight text with sed! Code: echo duck duck goose duck duck | sed '/goose/,${s//\x1b[1;33;41m&\x1b[0m/g;b};$q5' So make a bat file out of it! Code: @echo off sed...
View ArticlePrice difference
I download TCC today and would like to buy it (I've been an avid user of 4NT for 20 years). But looking at the price at jpsoft.com, it's 66.40 Euros: But pressing Enter and being transferred to PayPal,...
View ArticleEffect when Variable contains String with Clips
I have use follow Construct in Script and i am wonder over the Result. MD C:\TestDir CDD C:\TestDir SET Var=(Teststring) ECHO %Var >"%TEMP%\Test.dat" TCC: (Sys) the System cant found this Path...
View Articleextract email addresses from FROM, TO, CC, and BCC in EML files
Code: [C:\Users\csgal\OneDrive\Desktop\Export]tpipe /input=*.eml,255,1 /simple=28 /output=output.txt The filename, directory name, or volume label syntax is incorrect. "*.eml" Any idea what i am doing...
View ArticleTrim leading space from PATH
Before upgrading to TCC 30, I have used 4NT 5.0 (since 2004) with a complex setup for my PATH. Like f:\gv\4nt\environ.nt with: Code: MASTER_PATH=f:\gv\bat;^ f:\util;^ f:\util\zip-tools;^...
View Articlehow to read entire file into environment variable?
I want to read all the lines of a text file into an environment variable. I had tried using %@EXECSTR[type file] but that only got the first line Anyone already done this and have an example to share?
View ArticleActiveScript for VBScript
Ref : SCRIPT and GetObject Ref: Using VBScript functions from TCC22 Code: plugin /i ActiveScript Module: e:\utils\ActiveScript.dll Name: ActiveScript Author: Joe Caverly Email: jlcaverlyca@yahoo.ca...
View Articlecygwin cat.exe renders tab filename completion useless?
Not sure where the bug lies at all, but if I use cat.exe from cygwin to cat a binary file (usually an oops, but sometimes legitimate), tab-completion often no longer works in that instance. Ever again....
View ArticleHow would you activate a scrolling window title?
Winamp scrolls its window title. So how would I use the ACTIVATE command with a title that is always changing? Sure, it has "winamp" in the title, but it may be "win" at the end and "amp" at the...
View ArticleBuilt-in way to get the standard handles?
In particular, is there a built-in way to get the STD_INPUT_HANDLE?
View ArticleStill having problems with TCMD randomly closing or crashing
Various times I find that Take Command is no longer running when I never closed it, as if something crashed it. I haven't noticed any error logs (although I haven't checked Windows Event Viewer yet)....
View ArticleBDEBBUGER not working properly when debugging a batch file
I've been getting errors (like "Syntax Error" on the first line of my batch file when it's just simply an "@echo off" command) while debugging a batch file. Also, the internal return code always seems...
View Article