Please enable JavaScript to view this site.

Purpose:Browse directories and files.

 

Format:XDIR [ranges] [options] [file...]

 

rangesone or more ranges
optionsone or more file selection or report format options
fileThe file, directory, or list of files or directories to display.

 

/=

command dialog

/K

suppress header

/\

Trailing \ for directories

/L

Lower case

/32

Mark 32-bit modules

/M

suppress footer

/A

Attribute select

/N[desfhjlmvz]

New format or disable options

/C

show Compression

/O

Order

/D

Disable color coding

/P[n]

Pause

/E

upper case

/Q

show owner

/F

Full path

/T

show aTtributes

/G[:n]

allocated size

/T:

time type

/H

Hide dots

/U

show summary information

/I"text"

description range

/X

show short names

/J

Justify names

/Z

use FAT format

 

See also: CDD and DIR.

 

Usage:

 

XDIR is a combination of DIR, CDD, and a mini file manager. It displays a formatted list of directories / files with the desired fields (i.e., date / time, size, attributes, etc.) in a listbox that you can scroll through and perform various actions, including changing directories, viewing files, creating, renaming, or deleting files / directories, etc.

 

The top of the XDIR window will start at the current cursor location or row 9, whichever is less. If the current location is > line 9, TCC will scroll the display to put the cursor at line 9 and then show the XDIR window.

 

The XDIR caption shows the current directory / filename on the left, and toolbar below the caption shows a search edit control with two buttons for searching down and searching up.

 

If you have enabled directory colorization, XDIR will display the listbox in the same colors as used in the TCC window. If directory colorization is off, XDIR will use the default foreground and background colors for your current theme (including light & dark modes).

 

XDIR supports most of the DIR options (except those that use multiple columns or multiple rows).

 

XDIR is not supported in TCC-RT.

 

You can redefine all of the XDIR keys using the OPTION / Keyboard dialog.

 

Directive

Default

 Description

XDirAppendClip

Ctrl-Shift-C

Append the selected filename to the clipboard.

XDirCD

Ctrl-Enter

Change the TCC directory

XDirCDExit

Shift-Enter

Change to the selected directory and exit XDIR.

XDirCopyClip

Ctrl-C

Copy the selected filename to the clipboard.

XDirDel

Ctrl-D, Del

Delete the selected directory or file. TCC will display a messagebox to confirm the delete. A directory deletion is equivalent to a RD /S, so pay attention to the prompt!

XDirDown

Down

Scroll down one row.

XDirEdit

Ctrl-E

Edit the file with TCEdit.

XDirEnd

End

Move to the last line.

XDirExit

Esc

If the focus is in the listbox, quits XDIR. If the focus is in one of the edit controls, changes the focus back to the listbox.

XDirFind

Ctrl-F

Moves the focus to the search edit control. An Enter will then look for the first matching name (starting at the current location). The search supports all TCC wildcards as well as regular expressions (prefixed by two colons, i.e. ::expr .). Also available in the right-click context menu.

XDirHelp

F1

Display this help page.

XDirInfo

?, I

Display a messagebox with file information (pathname, description, size, create / access / last write date & time).

XDirHome

Home

Move to the first line.

XDirNewFile

Ctrl-N

Create a new file. Also available in the right-click context menu.

XDirNewFolder

Ctrl-S

Create a new subdirectory. Also available in the right-click context menu.

XDirNext

F3

Find next matching filename.

XDirParent

Backspace

Display the parent directory. A Ctrl-Backspace will change the TCC default directory to the parent directory.

XDirPgUp

PgUp

Scroll up one page.

XDirPgDn

PgDn

Scroll down one page.

XDirPreview

Space

Show file in VIEW.

XDirPrevious

F4

Find previous matching filename.

XDirRefresh

Ctrl-R

Clear the XDIR window and get / display the directory again.

XDirRename

F2

Rename a subdirectory or file. An edit control will open over the current selection with the directory / file name to edit. An Enter will save the change; an Esc will discard any changes.

XDirSelect

Enter

Enter (or Left-DblClk) - If the selection is a directory, XDIR will change the listbox to display the contents of that directory. A Ctrl-Enter will also change the TCC default directory to the selected directory. If the selection is a file, XDIR will execute the default Windows "Open" action for that file type

XDirUp

Up

Scroll up one row.

 

Options:

 

/=Display the XDIR command dialog to help you set the filename and command line options. The /= option can be anywhere on the line; additional options will set the appropriate fields in the command dialog.

 

/\Display directory names with a trailing \.

 

/32Show a » before 32-bit module names (EXE's and DLL's).

 

/A[:]Display only those files that have the specified attribute(s) set. See Attribute Switches for information on the attributes which can follow /A:.

 

You can specify /A:= to display a dialog to help you set individual attributes.

 

/C Display per-file and total compression percentage on NTFS drives with compression enabled.

 

/DTemporarily disable directory color coding.

 

/EDisplay filenames in upper case.

 

/FDisplay each filename with its drive letter and path in a single column, without other information. If you use /F with /X, the "short" version of the entire path is displayed.

 

/G[:n]Display the allocated disk space instead of the actual size of each file. You can optionally specify the disk cluster size to be used by /G. (XDIR will normally query the system for the cluster size on the specified drive, but you can override with /G:n if you know that the returned info is incorrect, or if you want to find the size required if the specified files were moved to another device with a different cluster size.)

 

/HSuppress the display of the "." and ".." directories.

 

/I"text"Select filenames by matching text in their descriptions. The text can include wildcards and extended wildcards. The search text must be enclosed in double quotes, and must follow the /I immediately, with no intervening spaces. You can select all filenames that have a description with /I"[?]*", or all filenames that do not have a description with /I"[]".

 

The /I option may be used to select files even if descriptions are not displayed (for example, if /2 is used). However, /I will be ignored if /C or /O:c is used.

 

/JJustify (align) filename extensions and display them in the FAT format. If on an LFN drive, you must also specify the /X and /Z options.

 

/LDisplay file and directory names in lower case.

 

/NUse the long filename display format, even if the files are stored on a volume which does not support long filenames. See also /Z.

 

A /N with one of the following arguments has an alternate meaning:

 

eDon't display an error message if no files match
lDon't display the link name for symbolic links
m:nDisplay a maximum of n directory entries
qDon't display the confirmation messagebox when deleting files. (Deleting directories will always show the confirmation dialog.)

 

/OSet the sorting order. You may use any combination of the sorting options below. If multiple options are used, the listing will be sorted with the first sort option as the primary key, the next as the secondary key, and so on:

 

nSort by filename and extension, unless e is explicitly included. This is the default.
-Reverse the sort order for the next sort key
aSort names and extensions in standard ASCII order, instead of numerically when numeric substrings are included in the name or extension.
cSort by compression ratio (the least compressed file in the list will be displayed first). For single-column directory displays in the short filename format, the compression ratios will be used as the basis of the sort and will also be displayed. For information on supported compression systems see /C above.
dSort by date and time (oldest first); also see /T:acw
eSort by extension
gGroup subdirectories first, then files
iSort by file description (ignored if /C or /O:c is also used)
oSort by owner
rReverse the sort order for all options
sSort by size
tSame as d
uUnsorted

 

/QDisplay the file or directory owner (NTFS and remote directories only).

 

/TDisplay the filenames and attributes in the format RHSADENTPCOIJ, regardless of volume type:

 

R

Read-only

A

Archive

H

Hidden

D

Subdirectory

S

System

C

Compressed

E

Encrypted

O

Offline

N

Normal

I

Not content-indexed

T

Temporary

L

Junction or symbolic link

P

Sparse file



 

Attributes which are set are represented by their letter, unset attributes by the _ (underscore) character.

 

If you wish to add another option after /T, you must start the next option with a forward slash. If you don't, TCC will interpret the /T as the /T:{acw} time display switch (see below) and the following character as a time selector. For example:

 

xdir /tz                incorrect, will display an error

xdir /t /z                correct

 

/T:a|c|w[u] Specify which of the date and time fields on a drive which supports long filenames should be displayed and used for sorting:

 

aLast access date and time (on VFAT volumes access time is always midnight).
cCreation date and time.
wLast modification (write) date and time (default).

 

If you append a u after the field, XDIR will display the file time in UTC.

 

/XDisplay both the short name (8-character name plus 3-character extension) and the long name of each file on an LFN drive. The short name is displayed first, followed by the long name. The short name column is left blank if the short name and long name are the same. On NTFS volumes this means case insensitive match, but on VFAT volumes this means case sensitive match (i.e., no lower case letters in the SFN). /X also selects short file and path names in the /F display.

 

/ZDisplay filenames on LFN drives in the old-style format, with the filename on the left and the description (when available) on the right. Long names will be truncated to 12 characters unless /X is also used. If the name is longer than 12 characters, it will be followed by a è "right arrow" symbol to show that one or more characters have been truncated.