Important: When using the Linux version of TBOSDT, all command line options are specified by using a "-" instead of a "/" for a single character and "--" when more.
Example: LIST FILES –s --AD
|
Command Function
|
Command Syntax
|
List files
|
DIR pathmask [/w][/p][/s][/x][/ad][/ah][/as][/ar][/aa]
LS pathmask [/w][/p][/s][/x] [/ad][/ah][/as][/ar][/aa]
LIST FILES pathmask [/w][/p][/s][/x] [/ad][/ah][/as][/ar][/aa]
/w - wide display (sfn only).
/p - pause on each full screen of information.
/s - include sub-folders.
/x - display short names only.
/ad – list directories only.
/ah – list hidden files only.
/as – list system files only.
/ar – list read-only files only.
/aa – list archive files only.
|
List contents of a file
|
LIST FILE filename [/p][/r]
TYPE filename [/p][/r]
/p - pause after a full screen of information.
/r – raw output (no Unicode translation)
|
List alternate data stream names of a file
|
LIST ADS filename
|
Add/Delete a line of text in a text file
|
SET TEXTLINE filename text [/d][/n][[/b][/a] [searchtext]]
/d - delete line.
/n - use only newline instead of cr/lf.
/b - insert before searchtext.
/a - insert after searchtext.
|
Copy a file
|
COPY sourcefile [targetfile] [/s][/y][/n][/q]
/s - span across folders
/f - follow symlinks (local file system only)
/xj - don’t follow junctions/symlinks (Windows)
/y - overwrite all
/n - overwrite none
/c - ignore errors
/q - quiet mode
|
Extract a file or files from a cab archive
|
COPY CAB cabfile sourcefile targetdir [/y][/n][/l][/q]
EXTRACT cabfile sourcefile targetdir [/y][/n][/l][/q]
/y - overwrite all
/n - overwrite none
/l - list only
/q - quiet mode
|
Rename a file
|
REN FILE orgfile newfile
REN orgfile newfile
/q – quiet mode
|
Delete a file
|
DEL FILE path [/y][/q]
/y - do not confirm
/q – quiet mode
|
Change directory
|
OPEN DIR path
CD path
|
Create a directory
|
MD path [/s][/q]
ADD DIR path [/s]
/s - create entire path as needed.
/q – quiet mode
|
Remove a directory
|
DEL DIR path [/y][/s]
RD path [/y][/s]
/y - do not confirm
/s - delete all files and sub-folders
/q – quite mode (no error messages)
|
Print working directory
|
LIST DIR
PWD
|