Changing the list style of the dir command

1 January 2000 by Snakefoot | Comment » | Trackback Off
DIR is an internal command recognized by the command prompt interpreter, and it displays the contents of directory (sub-folders and files). It is possible to format the output of the DIR command by setting an environment variable.

Edit AUTOEXEC.BAT and insert/update these line:

REM /A show all files(System/hidden), /O sort with B(directories first)
REM and N(By name), /P pause for each screen
SET DIRCMD=/A/OGN/P

To get a full list of all the settings available for the DIR command:

DIR /?

Category:

Updated: 2 July 2007

Leave a comment


You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>