Favorite Aliases 2000
Continuing with the 4DOS/Take Command tradition, we are posting individual contributions about how to use the alias feature. Remember that aliases are entered on a single line
Kermit Wolford
December 16, 2000 An ASCII text can also be downloaded for easier editing in your alias file. You may e-mail Kermit
.
- cdds=tree c:\ /b/h > c:\jpstree.idx
- A substitute for the cdd /s command that includes hidden directories
- cleanhlp=del /z/s c:\*.fts c:\*.gid
- Cleans up all those generated windows help files
- clip=copy %1 clip:
- Copies a file to the windows clipboard
- dirnew=dir *.* /s/a/t/b/[d%_date,%_date]/[t-120,+120]
- Find files that have been added or changed in the last
two hours
- dirnow=dir \*.* /s/a/t/b/[d%_date,%_date]/[t-2,+2]
- Find files that have been added or changed in the last two minutes; starts in the root directory and tracks down the changes sometimes made by rogue shareware and self-installing web downloads
- frm=iff "%1"=="" then^net use * \\frm\c password^else^net use * \\frm\%1 password
- Connects my bedroom computer to my family room computer
on my network. It defaults to the C: drive unless these is a "%1"
- mcd=cd\^md\%1^cd\%1
- Creates a directory in the root directory and changes to it
- no=if x%1==x (echo Syntax is: no ^X< exclusion^X> ^X< command >^X
^X< filemask^X> ^X< options^X> ) else (attrib %1 +h> nul^%2 %3 %4^attrib %1 -h> nul)
- Excludes a filespec from a command
- print=myset^copy %1 lpt1^eject
- Prints the file the way I like
- myset=reset^pc-8^8lpi^12cpi^lm
- Sets typeface and spacing
- eject=echos .f >prn^echo Page ejected!!!
- Gets the partial pages out
Note: We are using ^X to represent the unprintable (in windows) box characters as the "up arrow" (^X or decimal 024) need for command prompt entry.