Wednesday, September 23, 2009

How to Copy the filenames of a directory to a text file

Microsoft Operating Systems

Step-1 Get to a Command Prompt

For Windows 9x and ME above - goto start/run and type command into the box and hit enter

For windows 200, NT, XP - goto start/run and type cmd into the box and hit enter

Step -2 Make the directory with the files you want the current directory.

Use the Following Command

dir /b > dir.txt

This will perform the dir command with the bare formatting switch. Creates a file named "dir.txt" and puts the output of the dir command into it.

More info
For more information about the dir command type the following into your command window

dir /?

No comments:

Post a Comment