Default
Google

avoid navigation

Printable directory listing

An MS-DOS batch file to return a directory or folder listing as a text file.

Contents

  1. Introduction.
  2. Listing of this batch-file.

Introduction

It is sometimes useful to have a permanent record of the files in a particular folder, or directory, tree. This record can be on the hard-disk or printed. This is a batch file that does just that.

You might like to customise this batch file to produce the listing in the format that best suits you. As shown produces a list of the the specified folder and all of it's sub folders, sorted alphabetically.

Back to Contents.

Listing of this batch-file

@echo off
:: DirList                            ::
::                                    ::
:: A batch file to list the contents  ::
:: of a folder/directory tree         ::
::                                    ::
@Dir "%1" /v /on /s > %temp%\Dirlist.txt
@notepad.exe %temp%\dirlist.txt

Back to Contents..



Acquiring image from ProHosting Banner Exchange