Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Skibicki/0fbe5bb11e22dd961442598c773a5a99 to your computer and use it in GitHub Desktop.
Save Skibicki/0fbe5bb11e22dd961442598c773a5a99 to your computer and use it in GitHub Desktop.
Shortened instructions for adding and saving aliases in Take Command or TCC
Shortened instructions for adding and saving aliases in Take Command or TCC
https://jpsoft.com/forums/threads/add-a-new-alias.344/
FORUMS > TAKE COMMAND AND TCC > TIPS AND TRICKS > T&T - ALIASES
Title: ADD A NEW ALIAS
1.) Eric Pement:
To use this, you must have this command in your TCSTART.BTM file:
alias /r "c:\path\to\alias.ini"
And then in the alias.ini file, you keep all your commonly used aliases, e.g.,
calc=echo The answer is %@comma[%@eval[%$]]
clear=*cls
getclip=*type clip:
and then, assuming your favorite text editor is named TDE (Thomson-Davis Editor), add this:
addalias=tde c:\path\to\alias.ini %+ alias /r c:\path\to\alias.ini %+ echo New aliases loaded!
---------------------------------------------------------------------------------------------------------
2.) Harvey:
After I create a new alias, I use an alias called save. It looks like:
Save = al>c:\4nt\alias.bak&type c:\4nt\alias.bak | c:\windows\system32\sort > c:\4nt\alias.txt&una *&alias /r c:\4nt\alias.txt
Where "al" is an alias for "alias".
Where "al>c:\4nt\alias.bak" writes the alias file to c:\4nt\alias.bak.
Then "Type c:\4nt\alias.bak | C:\window\system32\sort > c:\4nt\alias.txt" sorts the backup file alphabetically and writes it to the alias.txt,
Where una is an alias for "unalias".
Then "una *" removes all the aliases in memory.
Then "Alias /r c:\4nt\alias.txt" reloads the aliases.
I place a "load.bat" file on the C drive root.
It is "alias /r c:\4nt\alias.txt"
I use it in the event that I modified an alias and it doesn't function properly. I simply type in "Load" and all is forgiven.
---------------------------------------------------------------------------------------------------------
3.) CSGalloway@nc.rr.com
"Type c:\4nt\alias.bak | c:\windows\system32\sort > c:\4nt\alias.txt"
can be rewritten as: SORT /o c:\4nt\alias.txt c:\4nt\alias.bak
This is faster.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment