About Us
American Interests
Arizona Regional
Biocybergenics
Convergence Zone
Free Stuff - E-groups
Home
Internet Investigations
Naradamotive
Psionic Guards
Site Search
Social Unrest
Universal Wholesale
Webmaster's Lounge
XP COMMAND DESCRIPTION
APPEND ARP ASSOC AT ATTRIB BREAK CACLS CALL CD
CHCP CHDIR CHKDSK CHKNTFS CLS CMD COLOR COMMAND COMP
COMPACT CONTROL CONVERT COPY DATE DEBUG DEL DELTREE DIR 2
DIR ... DISKCOMP DISKCOPY DOSKEY ECHO EDIT EDLIN ERASE EXIT
EXPAND FC FDISK FIND FOR FORMAT FTP GRAFTABL HELP
IPCONFIG LABEL LOADFIX MD MEM MKDIR MODE MORE MOVE
MSCDEX NBTSTAT NET NETSTAT NLSFUNC NSLOOKUP PATH PATHPING PAUSE
PING PRINT PROMPT RD REN RENAME RMDIR ROUTE SET
SETVER SHARE SHUTDOWN SORT SUBST TIME TREE TYPE UNLOCK
VER VERIFY VOL XCOPY





DIR , This lists all files including hidden files, does not work in Windows 95 / 98 / NT / 2000.
Displays a list of files and subdirectories in a directory.

DIR [drive:][path][filename] [/P] [/W] [/A[[:]attributes]] [/O[[:]sortorder]] [/S] [/B] [/L] [/V]

[drive:][path][filename] Specifies drive, directory, and/or files to list. (Could be enhanced file specification or multiple filespecs.)
/P Pauses after each screenful of information.
/W Uses wide list format.
/A  attributes:
D Directories
R Read-only files
H Hidden files
A Files ready for archiving
S System files
- Prefix meaning not
/O List by files in sorted order, sortorder:
N By name (alphabetic)
S By size (smallest first)
E By extension (alphabetic)
D By date & time (earliest first)
G Group directories first
- Prefix to reverse order
A By Last Access Date (earliest first)
/S Displays files in specified directory and all subdirectories.
/B Uses bare format (no heading information or summary).
/L Uses lowercase.
/V Verbose mode.

Switches may be preset in the DIRCMD environment variable. Override preset switches by prefixing any switch with - (hyphen)--for example, /-W.

EXAMPLES

dir = Lists all files and directories in the directory that you are currently in.
dir /ad = List only the directories in the current directory.
dir /s = Lists the files in the directory that you are in and all sub directories after that directory, if you are at root "C:\>" and type this command this will list to you every file and directory that is on the computer.
dir /p = If the directory has a lot of files and you cannot read all the files you can use this command and it will display all files one page at a time.
dir /w = If you don't need the info on the date / time and other information on the files you can use this command to list just the files and directories going horizontal taking as little as space needed.
dir /s /w /p = This would list all the files and directories in the current directory and the sub directories after that in wide format one page at a time.

ADDITIONAL INFORMATION

DIR \ /S |FIND "i" |MORE = A nice command to list all directories on the hard drive, one screen page at a time, and see the number of files in each directory and the amount of space each occupies, use this command:

DIR > myfile.txt - Takes the output of dir and re-routes it to the file myfile.txt instead of outputting it to the screen.

APPEND ARP ASSOC AT ATTRIB BREAK CACLS CALL CD
CHCP CHDIR CHKDSK CHKNTFS CLS CMD COLOR COMMAND COMP
COMPACT CONTROL CONVERT COPY DATE DEBUG DEL DELTREE DIR 2
DIR ... DISKCOMP DISKCOPY DOSKEY ECHO EDIT EDLIN ERASE EXIT
EXPAND FC FDISK FIND FOR FORMAT FTP GRAFTABL HELP
IPCONFIG LABEL LOADFIX MD MEM MKDIR MODE MORE MOVE
MSCDEX NBTSTAT NET NETSTAT NLSFUNC NSLOOKUP PATH PATHPING PAUSE
PING PRINT PROMPT RD REN RENAME RMDIR ROUTE SET
SETVER SHARE SHUTDOWN SORT SUBST TIME TREE TYPE UNLOCK
VER VERIFY VOL XCOPY





Cyonic Nemeton