Quantcast
Channel: T&T - Library Functions
Browsing latest articles
Browse All 10 View Live

Library Functions

Hello everyone, One of the greatest features Rex has built into TCC over the last few years, in my humble opinion, is the ability to define our own commands. That gives us, the users, great power to...

View Article



GetOpt - Process Command Line Options

Many years ago I created a GetOpt batch file so that I could process command line arguments effectively. I've posted this before, but you can read much more about how this works at the following link:...

View Article

DebugPrint - Display debugging messages

For batchfiles or functions of any size, I try to include debugging messages. Many take a '/D' (or -D) argument to turn on debugging or just relay on the environment variable 'DEBUG' to be defined....

View Article

SetColor & EchoColor - Set Output Color

I use color a lot in my scripts. My TCC has a black background and I find things look much prettier if I can colorize the output. I have two functions that do this...SetColor and EchoColor. EchoColor:...

View Article

Hasher - Display MD5 and SHA256 Values

Simple function that will display the file (or files) with both MD5 and SHA256 hash values. This is useful if I am comparing the hashes for downloads to values posted online. Some people use MD5, some...

View Article


LC - Line Counter

For some reason I find I do this quite a bit. I want to know how many lines are in a file or pipe. So this simple script effectively does what "wc -l" does in unix. You can provide a filename or send...

View Article

MyIP - Display internal and external IP address

Very basic function that will show the internal IP of your machine (via %_IP) as well as what the internet sees as your address. This would normally be the IP address of your modem or router. Code:...

View Article

PrintCenter - Print text in center of console

If I wanted text to appear in the center of the console, this will do it. The math is not that complex :-) Take the console width in columns. Divide by 2. Take the text. Divide by 2. Subtract the...

View Article


t - Temperature Display

I work with a lot of people who use Celsius and this helps the small talk at the front of the meeting. Just give it a temperature number and it will show what that is in both Fahrenheit and Celsius....

View Article


Using VBScript functions from TCC

I am a frequent user of VBScript, and have added the following library function to TCC to make using VBScript functions easier; Code: vb { @setlocal @echo off echo set...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images