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

Max number of tokens in FOR /f ?

I am using this token-based FOR subroutine for /f "tokens=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26 delims=;" %a in (@00TMP.txt) DO GOSUB SUBEXTRACT3 . . :SUBEXTRACT3 if...

View Article


Crash (abort) during COPY on Windows 10

Hi ! I've just downloaded TCC/LE 14.00.9 from JPSoft Website (64 bits) cause I've set up a fresh new PC with Windows 10. Had been a happy TCC/LE/Windows 7 user for a looooooooooooong time ! What...

View Article


Handle a terminating error (exception) within a scriptblock

While TCC already has ON ERROR, enhance TCC with an additional means to trap and handle errors. I suggest a TRY CATCH FINALLY exception handling syntax, similar to what C# and other languages have. Joe

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

"start /affinity=", but cmd.exe doesn't use the "="

I was recently testing out a batch file that was written for cmd, and trying to add some TCC fanciness around it to make it work a little better. In essence, the script will launch a program and it's...

View Article


The FTP.CFG file doesn't seem to work

I might not be doing something right, but I can't seem to get the FTP.CFG file to work as specified in the documentation. I've added my FTP site to it in the format specified: ftp://myftpsite.com...

View Article

How to prevent multiple launch of a program from Explorer window ?

Hello I run begin.btm by double-clicking it from an Explorer window. It launches -----------Code.btm----------- MSACCESS.EXE test.mdb bsa.bat ------------- Often my computer freezes/I click too much...

View Article

Set file time (hour & minute) to a variable

Hello How to set file time (hour & minute) to a variable ? I have a piece of complicated code in the bat file. Probably that was because there was no easy way in command.com to find time (hour...

View Article


Another regex-in-RENAME question

Code: [D:\TMP] dir /b /a-d *-* a-b a-b--c---d a--b-c a-b-c-d If I want to convert all those dashes to underscores in the filenames, I can use this command: ren ::- ::_ But what if I want to convert...

View Article


Not able to find reg info

We just moved and I cannot find my registration info for TCMD v27. I do have my v26 info. Am I mistaken and NOT registered with v27? Charles Billow

View Article

Can I turn off the minimize to tray mechanism in TCC?

Can I turn off the minimize-to-tray mechanism in TCC?

View Article

Bug: Peculiar interaction between \\wsl$\... pathname and copy command

Here is a simple demo of the incorrect behavior: > copy \\wsl$\Ubuntu-21r10\home\larrybr\.bash_aliases \Tmp\ \\wsl$\Ubuntu-21r10\home\larrybr\.bash_aliases => C:\Tmp\.bash_aliases TCC: (Sys) The...

View Article

Image may be NSFW.
Clik here to view.

Can I have Input: color on (default)?

With these settings, I can change the console's color scheme to any of WindowsTerminal's 9 schemes (with VT escape sequences in a BTM) and the default (^e[0m) is as it should be (instead of a pair of...

View Article


v28 forcibly replace console icon and leave it as that

I just tested every version from v25 with a simple script. con-test.btm: Code: @VER /R v25 to v27, the icon is left untouched. v28 immediately replaces console icon and it remains broken until I close...

View Article

Using ANSI codes in prompt causes the 'list' command to show a blank page...???

Hi, I'm using TCC only, and a "ver" shows "TCC 26.02.43 x64 Windows 10 [Version 10.0.19042.1466]". In my tcstart.btm I have the following (whittled down to the simplest, it's normally an execstr...

View Article


Launch CMD by RMC in Explorer

@Charles Dye - I'd love to have a modified RegTweaks.btm that would also ask the user if they want a "Run CMD here" prompt from the context menu.... Hope all is well... The other Charles....

View Article

Closest thing to DESCRIPT.ION files in Linux

Serious question: Are there any promising implementations of TCC-like file descriptions in the Linux environment? Is there a suite of tools available under Linux to add, edit, delete single-line file...

View Article


PRIORITY sans arguments

If you do not enter any arguments, PRIORITY displays all of the active processes, their current priority, the module names, and the window titles (if any). Click to expand... That's how it worked...

View Article

Copy command in BTM file fails occasionally

I have a simple BTM file to copy two Outlook '.ost' files to a backup folder - an excerpt of the file is shown below. Sometimes it runs fine, at other times, it only copies one of the two '.ost' files....

View Article

COLOR /F issues

Two or three issues with COLOR /F: 1. If the cursor is at the bottom of the window when COLOR /F is issued, and if the palette load succeeds, the console window shrinks by one line. If TCC is in a...

View Article
Browsing all 1680 articles
Browse latest View live