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

Using ALIAS as Shared Memory

There are many ways to share memory with TCC 64-bit and a 32-bit application. Here's a method that I use. In the source code below, and the notes that follow, I have a few issues, but they have not...

View Article


Image may be NSFW.
Clik here to view.

Custom prompt - pretty easy to modify.

It might be too noisy for some, but here's some custom prompt code that helps show OS/Host/Git Context/Error level/Subshell Depth. Preview with commands to display the status bits In tcstart.btm...

View Article


randomize usb-stick audio for players that won't shuffle

Tired of bluetooth speakers that won't play the contents of a usb stick in shuffle order? Why not prefix each song with a random 4 digit number? fix the problem in TCC by randomizing the filesort via...

View Article

Execute Command upon changing to a specific directory

When I change to my E:\Utils directory, I usually do a directory listing of files modified in the last day. I have automated this with the following alias; Code: alias cd_enter=`if %1 eq e:\utils dir...

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.

Can't install v33 and error message doesn't feel accurate

It's definitely running.... Restarting it didn't help.

View Article

EyeBurner plugin and PowerShell Profile

I'm trying to create a PowerShell profile for the EyeBurner plugin. This is what I have so far, in the EyeBurn.ini; Code: [PowerShell] StdColors=Bri White on Black InputColors=Bright White on Black...

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


ability to install with winget?

I'm trying to automate my environments as much as possible โ€” including the automation of rolling out common programs I use. Is there a winget command to install TCC?

View Article


Any way to make .envtc files work in subfolders like direnv?

I learned a while ago that TCC offers a feature much like the popular direnv utility, which can set and unset environment variables when you enter/leave a folder. But I've since learned that it differs...

View Article

Downloading TCMD.EXE

Since TCMD.EXE can no longer be copied to the local system using the internal COPY command... Code: R:\>copy /g https://jpsoft.com/downloads/v33/tcmd.exe https://jpsoft.com/downloads/v33/tcmd.exe...

View Article

Replace CTTY in old .BTM

Pretty much what it says in the title. I'm rummaging through old .BTMs to see if any are of any use and I came across one that uses CTTY to redirect output to NUL. Other than adding >&NUL to the...

View Article

Image may be NSFW.
Clik here to view.

Indicate .exe and .dll type in DIR command

In the Tasks plugin, the Tasklist command can display extra information about each process, using the /E switch. That is, 32-bit programs are marked with a guillemet: ยป when using the Tasklist command....

View Article


Substituting for SET variables

This is really elementary, but it's been a long time(*) since I've had to deal with it: I set a local variable: set NRoot=N:\LocalFBu\CRoot\ Which I want to use in something like set QQSV=cd...

View Article

DO i=1 to %# in an alias?

Why doesn't this work? Code: v:\> alias nargs `do i=1 to %# ( echo %[%i] )` v:\> nargs a b c Usage : DO [n | FOREVER] According to the help for ALIAS, The special parameter %# contains the number...

View Article


Remove Duplicate Lines from a File

XSORT, a command introduced in v33, can remove duplicate lines from a text file. Code: R:\>type test.txt Line 1 Line 2 Line 3 Line 4 Line 2 Line 4 R:\>xsort /d test.txt Line 1 Line 2 Line 3 Line...

View Article

Add a Windows Terminal forum

Add a Windows Terminal forum alongside the CMD and PowerShell fora. I think this would be useful both for Windows Terminal discussion in general, and to discuss specifics of running TCC in Terminal...

View Article


SERVICEMONITOR suggestions

I wanted to monitor the starting and stopping of a service. SERVICEMONITOR would be a lot easier to use if it ... 1. could watch for more than one condition (notably, STARTED or STOPPED), and 2. would...

View Article

WAITFOR and /EXIT=5

Start an .exe for testing. Code: R:\>notepad.exe This does not work; Code: R:\>waitfor /Exit=5 notepad.exe TCC: Unknown process "notepad.exe" This does not work, just returns to the prompt; Code:...

View Article

WAITFOR, _? is always 2

I can't get it to return anything but 2. A distinction between timed out and satisfied would be nice.

View Article
Browsing all 1677 articles
Browse latest View live