Question Locked

Need full listing of WindowsXP files

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to capture a list of all the files on my hard drive. I know how to use "dir" and dump the listing to a text file...but here's the problem:

I don't want to see the name of each directory followed by a list of its files, I just want a list containing the full path name of each file. For example:

C:\dir1\dir1file1.txt
C:\dir1\dir1file2.doc
C:\dir2\dir2file1.xls
C:\dir2\dir2file2.ppt

I'd be very surprised if there is not a way to do this from the command line or with a batch file. Any help appreciated!

6 replies

by hal 9000

If it's to save your system settings and be able to recover from a crash this [b]Will Not Work[/b] as the drive that you write these files to will not be bootable.

If you wish to make a bootable HDD without the need to reactivate you'll need to use some form of Cloning Application to do the job and even then if there are more than 3 items changed since the Image/Drive was made you'll need to reactivate the system again.

If you just want a list of files that are an integral part of Windows boot into safe mode and copy them to wherever you want them saved.

Col

by nicknielsen

I can't imagine why you want it, but the following command will give you what you want:

DIR [path] /s /b > outputfile

by cmb from omaha

Thanks, that was a BIG help. What I am trying to do is clean out a horribly messy hard drive that has way too many folders and duplicates of files.

One more question though: I don't suppose that there is a way to list files in this "full path" format and also list the date/time of last update after each file, is there? Thanks in advance...

by cmb from omaha

For a couple of reasons, I was looking for a way to do this using the command line or a batch file only. The info you gave me previously gave me 90% of what I was looking for, so thanks again!

This discussion is closed to new replies.