List of files in a folder

Associate
Joined
3 Feb 2003
Posts
1,771
Location
Sydney, Australia
Just a quickie.

I have quite a large dvd collection that I am in the process of copying to a new NAS unit I bought. Is there any quick way to create a notepad file containing the names of all the files in the folder?

Cheers
 
Start->run->cmd

Change to the directory with the files in and type
Code:
dir /b > tempfile.txt

tempfile.txt will contain all the files in that directory

Add a /s if you want all sub-directories also
 
chris06 said:
Stupid question time :)

how do you change the directory away from the default?

CD {new directory name}

If you type a partial directory in then press tab, it will auto-complete it for you. If you type it all in, and there are spaces anywhere in the directory name - then put double quotes around it (e.g. cd "\documents and settings")

To change to the root directory, you do CD \

You can change more than one level at a time (e.g. CD \windows\system32 would change you to the system directory in windows)

If you need to switch to another drive, type the drive letter followed by a colon (e.g. D:)

Everything is case-insensitive in a command prompt

Or an easier way, find the microsoft powertoy that gives you a right-click "Open command prompt here"
 
Back
Top Bottom