From: larryalk
| I'm new to tcmd although used 4dos and 4nt for many years. To get
| started I need to recreate my old aliases (many) which probably have
| a different syntax now.
Unlike Microsoft, JPsoft maintains backward compatibility to the maximum possible extent. Only when an old feature is no longer supported by the OS (and cannot easily emulated in TCC) is it dropped. For example, the OS does not support the concept of a "current directory" for each drive (only for the current drive). TCC does support it (though only on a per-instance basis, so two concurrent instances of TCC could have different default directories for the same drive). Many of my aliases originated from 4DOS, though improved capabilities often resulted in changes, mostly simplifications. I dropped many, because the feature they created is now internal.|
| Are there any lists of common aliases?
No.
| Particularly dir aliases to select the last created file, display
| dirs only, sort files by size, by extension etc.
Unsorted order for NTFS drives is by name. Default time displayed is modification time, which is often different from creation time for files that were creadeted by copying another file, edited in place, appended to, etc., and is generally more meaningful than creation time. Note that unlike Unix and its imitators, by default the copy of a file retains the original file's modification time (but has a new creation time). Sorting by various criteria is trivial, using the /O[rder] option, so only if you want to use 2-letter commands is it worth creating aliases. Below is an alias to display the "last created" file in the current directory (UNTESTED!!!):
alias lastfile=`*dir/tc/o-d | head /n1`
| I also wish to create an alias to easily cd to my home directory
| which is \users\xxx\.
| I'm used to Linux where you just issue cd and that takes you to your
| home directory.
alias home=`*cdd/n %userprofile`
You could also define a similar command to access the "All Users" directory, and some subdirectories of each, e.g., "Application Data", Desktop, "Start Menu". Note that I am using WinXP terminology; if you use a different release of Windows, you may need to change to match it. Ah, what one would give for backward compatibility! It is diametrically opposed to what appears to the public to be the Microsoft philosophy: change everything, so the user would need to buy new software for each new computer...
--
HTH, Steve