home *** CD-ROM | disk | FTP | other *** search
- REM ************************************************************
- REM This line sets up the configuration for ObsRes
- REM The translator is to be ON
- REM The translation echo is disabled
- REM Aliases are not case sensitive
- REM Translations are to be applied recursively
- REM ************************************************************
- alias /on /noecho /nocase /recurse
-
- REM ------------------------------------------------------------
- REM command: ADD Source(WildSpec or Directory) [target]
- REM purpose: To add new files to a target directory
- REM ------------------------------------------------------------
- alias add mf /ca
-
- REM ------------------------------------------------------------
- REM command: ASCII {WildSpec}
- REM purpose: This dumps out files showing only ASCII characters
- REM ------------------------------------------------------------
- alias ascii fd /ascii /compress
-
- REM ------------------------------------------------------------
- REM command: BYEXT {WildSpec} [Directory]
- REM purpose: List files by extension
- REM ------------------------------------------------------------
- alias byext lf /oen
-
- REM ------------------------------------------------------------
- REM command: BYNAME {WildSpec} [Directory]
- REM purpose: List files by name
- REM ------------------------------------------------------------
- alias byname lf /one
-
- REM ------------------------------------------------------------
- REM command: BYSIZE {WildSpec} [Directory]
- REM purpose: List files by size (Ascending
- REM ------------------------------------------------------------
- alias bysize lf /osne
-
- REM ------------------------------------------------------------
- REM command: BYTIME {WildSpec} [Directory]
- REM purpose: List files from Oldest to the Newest
- REM ------------------------------------------------------------
- alias bytime lf /odne
-
- REM ------------------------------------------------------------
- REM command: CAT {WildSpec}
- REM purpose: To catenate files together
- REM ------------------------------------------------------------
- alias cat fd /nofast /binary /text
-
- REM ------------------------------------------------------------
- REM command: CD [SmartPath]
- REM command: CHDIR [SmartPath]
- REM purpose: To change directories
- REM ------------------------------------------------------------
- alias cd push
- alias chdir cd
-
- REM ------------------------------------------------------------
- REM command: CDD Directory
- REM purpose: To change directories across disks
- REM ------------------------------------------------------------
- alias cdd push /disk
-
- REM ------------------------------------------------------------
- REM command: CLOSE WildSpec or Directory
- REM purpose: Makes files write protected
- REM ------------------------------------------------------------
- alias close mf /sa+r
-
- REM ------------------------------------------------------------
- REM command: CMD CmdName
- REM purpose: Searches system for CmdName
- REM ------------------------------------------------------------
- alias cmd locate /cmd
-
- REM ------------------------------------------------------------
- REM command: CODE [Directory]
- REM purpose: List all the source code files
- REM ------------------------------------------------------------
- alias code lf .c .asm .cpp .h .inc .pas
-
- REM ------------------------------------------------------------
- REM command: COPY Source(WildSpec or Directory) [Target]
- REM purpose: Copies files from source to target
- REM ------------------------------------------------------------
- alias copy mf /c
-
- REM ------------------------------------------------------------
- REM command: COUNT {WildSpec}
- REM purpose: Counts characters, words, lines, and pages
- REM ------------------------------------------------------------
- alias count fd /count
-
- REM ------------------------------------------------------------
- REM command: DEL WildSpec or Directory
- REM command: ERASE WildSpec or Directory
- REM purpose: To delete the specified files, or dir contents
- REM ------------------------------------------------------------
- alias del mf /d
- alias erase del
-
- REM ------------------------------------------------------------
- REM command: DETAB spacing WildSpec [ > Target ]
- REM purpose: Removes tabs from file, and replaces them with
- REM spaces to "spacing" interval
- REM ------------------------------------------------------------
- alias detab fd /nofast /text /tab
-
- REM ------------------------------------------------------------
- REM command: DIR {WildSpec} [Directory]
- REM purpose: To list files
- REM ------------------------------------------------------------
- alias dir lf
-
- REM ------------------------------------------------------------
- REM command: DIRS {WildSpec} [Directory]
- REM purpose: To list directories, excludes files
- REM ------------------------------------------------------------
- alias dirs lf /ad
-
- REM ------------------------------------------------------------
- REM command: DOCS [Directory]
- REM purpose: List all the documentation files
- REM ------------------------------------------------------------
- alias docs lf .doc .txt read.me* readme
-
- REM ------------------------------------------------------------
- REM command: DUMP {WildSpec}
- REM purpose: Output files in a HEX dump
- REM ------------------------------------------------------------
- alias dump fd /hex /compress
-
- REM ------------------------------------------------------------
- REM command: FF [WildSpec]
- REM purpose: Perform a FileFind of the specified files
- REM ------------------------------------------------------------
- alias ff locate /file
-
- REM ------------------------------------------------------------
- REM command: FILES {WildSpec} [Directory]
- REM purpose: To list files and exclude directories
- REM ------------------------------------------------------------
- alias files lf /a-d
-
- REM ------------------------------------------------------------
- REM command: GO[TO] cmd_name
- REM purpose: Switch to the directory where the command is found
- REM ------------------------------------------------------------
- alias go'to locate /change /command
-
- REM ------------------------------------------------------------
- REM command: HEAD num {WildSpec}
- REM purpose: List only the top "num" lines of each file
- REM ------------------------------------------------------------
- alias head fd /text /end
-
- REM ------------------------------------------------------------
- REM command: HIDE WildSpec or Directory
- REM purpose: To set the hidden attribute on the specified files
- REM This makes the file invisible to a normal dir
- REM ------------------------------------------------------------
- alias hide mf /sa+h
-
- REM ------------------------------------------------------------
- REM command: LIST
- REM purpose: Lists all SmartPaths and Default directories
- REM ------------------------------------------------------------
- alias list ocd /list
-
- REM ------------------------------------------------------------
- REM command: MD Directory
- REM command: MKDIR Directory
- REM purpose: Creates a new directory and updates HotDir file
- REM ------------------------------------------------------------
- alias md ocd /mkdir
- alias mkdir md
-
- REM ------------------------------------------------------------
- REM command: NUMBER {WildSpec}
- REM purpose: Outputs a file, numbering the lines
- REM ------------------------------------------------------------
- alias number fd /nowrap /number
-
- REM ------------------------------------------------------------
- REM command: OPEN WildSpec or Directory
- REM purpose: Disables write-protect on the specified files
- REM ------------------------------------------------------------
- alias open mf /sa-r
-
- REM ------------------------------------------------------------
- REM command: PAGE {WildSpec}
- REM purpose: Displays a file page by page
- REM ------------------------------------------------------------
- alias page fd /text /nowrap /page
-
- REM ------------------------------------------------------------
- REM command: PATH [string]
- REM purpose: Sets the path = string / enables path editor
- REM ------------------------------------------------------------
- alias /nospace path set /noremove /edit path=
-
- REM ------------------------------------------------------------
- REM command: POP [number]
- REM purpose: Sets the current working directory to the entry
- REM on the stack, and clears the stack entries
- REM ------------------------------------------------------------
- alias pop ocd /pop
-
- REM ------------------------------------------------------------
- REM command: PROGS [Directory]
- REM purpose: Lists all the executable files in the directory
- REM ------------------------------------------------------------
- alias progs lf *.exe *.com *.bat
-
- REM ------------------------------------------------------------
- REM command: PROMPT [string]
- REM purpose: Sets the prompt = string / enables prompt editor
- REM ------------------------------------------------------------
- alias /nospace prompt set /noremove /edit prompt=
-
- REM ------------------------------------------------------------
- REM command: PRUNE Directory
- REM purpose: Removes the directory, even if it is non-empty
- REM ------------------------------------------------------------
- alias prune mf /d /r
-
- REM ------------------------------------------------------------
- REM command: PUSH [Directory]
- REM purpose: Places the current location on the stack
- REM ------------------------------------------------------------
- alias push ocd /push
-
- REM ------------------------------------------------------------
- REM command: QCOPY Source(WildSpec or Directory) Target
- REM purpose: Copys new and updated files from source to target
- REM comment: Runs quicker than copy, because it doesn't copy
- REM files that don't appear to have changed
- REM ------------------------------------------------------------
- alias qcopy mf /cua
-
- REM ------------------------------------------------------------
- REM command: RD Directory
- REM command: RMDIR Directory
- REM purpose: Removes the directory, and updates HotDir file
- REM comment: Directory must be empty
- REM ------------------------------------------------------------
- alias rd ocd /rmdir
- alias rmdir rd
-
- REM ------------------------------------------------------------
- REM command: REN Source(WildSpec or Directory) [Target]
- REM command: RENAME Source(WildSpec or Directory) [Target]
- REM command: MV Source(WildSpec or Directory) [Target]
- REM purpose: Change file or directory names
- REM Move files between directories
- REM
- REM If Target is absent, files will be moved to the
- REM current directory
- REM ------------------------------------------------------------
- alias ren mf /m
- alias rename ren
- alias mv ren
-
- REM ------------------------------------------------------------
- REM command: SET [variable[=definition]]
- REM purpose: Establish or change an environment variable
- REM ------------------------------------------------------------
- alias set ee /edit
-
- REM ------------------------------------------------------------
- REM command: STACK dirname [/DISK]
- REM purpose: Place a directory on the DirStack without
- REM changing into it
- REM ------------------------------------------------------------
- alias stack ocd /stack /echo
-
- REM ------------------------------------------------------------
- REM command: STRINGS {WildSpec}
- REM purpose: Output the strings in the selected files that are
- REM at least 5 characters in length
- REM ------------------------------------------------------------
- alias strings fd /strings 5 /smart
-
- REM ------------------------------------------------------------
- REM command: SW
- REM purpose: Switch between the current disk/directory, and the
- REM disk/directory on the top of the DirStack
- REM ------------------------------------------------------------
- alias /nospace sw'itch push /pop
-
- REM ------------------------------------------------------------
- REM command: TAG WildSpec or Directory
- REM purpose: Set the archive attribute
- REM ------------------------------------------------------------
- alias tag mf /sa+a
-
- REM ------------------------------------------------------------
- REM command: TAIL count {WildSpec}
- REM purpose: Display the last "count" lines of the files
- REM ------------------------------------------------------------
- alias /nospace tail fd /smart /begin -
-
- REM ------------------------------------------------------------
- REM command: TEXT {WildSpec}
- REM purpose: Display the ASCII characters in the specified
- REM files. Use formatted output
- REM ------------------------------------------------------------
- alias text fd /ascii /smart
-
- REM ------------------------------------------------------------
- REM command: TODAY {WildSpec} [Directory]
- REM purpose: List all the files written today
- REM ------------------------------------------------------------
- alias today lf /te-0
-
- REM ------------------------------------------------------------
- REM command: TOUCH {WildSpec}
- REM purpose: Update all files to have the current date and time
- REM ------------------------------------------------------------
- alias touch mf /st.
-
- REM ------------------------------------------------------------
- REM command: TYPE {WildSpec}
- REM purpose: Display the files on the screen
- REM ------------------------------------------------------------
- alias type fd
-
- REM ------------------------------------------------------------
- REM command: UNALIAS name
- REM purpose: Remove the alias name and definition
- REM ------------------------------------------------------------
- alias unalias alias /delete
-
- REM ------------------------------------------------------------
- REM command: UNHIDE {WildSpec or Directory}
- REM purpose: Clear the hidden attribute on the selected files
- REM This makes the file visible again
- REM ------------------------------------------------------------
- alias unhide mf /sa-h /ah
-
- REM ------------------------------------------------------------
- REM command: UNTAG WildSpec or Directory
- REM purpose: Clear the archive attribute
- REM ------------------------------------------------------------
- alias untag mf /sa-a
-
- REM ------------------------------------------------------------
- REM command: UP [count]
- REM purpose: Move up the current directory path
- REM ------------------------------------------------------------
- alias up push /up
-
- REM ------------------------------------------------------------
- REM command: UPDATE Target(SmartPath[WildSpec] or Directory)
- REM purpose: Update the selected file from the current dir
- REM ------------------------------------------------------------
- alias update mf /cu .
-
-
- REM ************************************************************
- REM these definitions redirect to tools directly to there
- REM executables
- REM ************************************************************
- alias alias ob alias.exe
- alias ds ob ds.exe
- alias lf ob lf.exe
- alias locate ob locate.exe
- alias fd ob fd.exe
- alias mf ob mf.exe
- alias ee ob ee.exe
-
- REM OCD will always attempt to update the HotDir file
- alias ocd ob ocd.exe /update
-
- REM ************************************************************
- REM this points to the directory ObsKit is located
- REM it is originally defined as NULL
- REM ************************************************************
- alias /null ob
-
- REM ------------------------------------------------------------
- REM To set OB for your environement, say C:\UTIL use
- REM ALIAS /NOSPACE OB C:\UTIL\
- REM Don't forget the /NOSPACE
- REM Don't forget the trailing '\'
- REM ------------------------------------------------------------