Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows file contents to text file

05 Jun 2010   #1
willwin5

windows 7
 
 
Windows file contents to text file

i need a list of everything on my hard drive i can access in a text file without manually pounding the folder/sub folder and contents names into notepad is there anyway this can be achieved?


My System SpecsSystem Spec
05 Jun 2010   #2
rdwray

Windows 7 Home Premium 64
 
 

My System SpecsSystem Spec
06 Jun 2010   #3
arkhi

Windows 2000 5.0 Build 2195
 
 

Assuming you have basic command prompt knowledge

Open a command prompt, then navigate to the folder whose structure you want to save to a text file.
Type:

dir /s >somename.txt

You'll then find the file on the directory you are at. The /s switch navigates ALL subfolders and files so saving it to txt might take some time.

You could also use the Open Command Window Here feature to have that folder already selected in the command prompt.

If you want EVERY single file/folder in your C:\ drive, then navigate to C:\ [cd /d C:\] and use the command from there.
My System SpecsSystem Spec
06 Jun 2010   #4
willwin5

windows 7
 
 

i have no idea how to use the command prompt is it too complicated to explain step by step?
My System SpecsSystem Spec
07 Jun 2010   #5
gladson1976

Windows 7 Ultimate x86 build 7600 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
 
 

To open a Command Prompt, Just goto Start -> Run and type cmd and press enter

A black window will open. You can type the commands there.

To get a list of files in a specific folder, you need to navigate to that folder
Example, if you want the list of files in C:\My Folder\My Files, then type

Code:
C: <ENTER>
CD \My Folder\My Files <ENTER>
DIR /S *.* > C:\MyFileList.txt <ENTER>
The file list will be saved in the file C:\MyFileList.txt
Note: <ENTER> means you have to press the ENTER key.

To get the list of all files in drive D:
Code:
D: <ENTER>
CD \ <ENTER>
DIR /S *.* > C:\MyFileList.txt <ENTER>
Hope that helps
My System SpecsSystem Spec
07 Jun 2010   #6
rdwray

Windows 7 Home Premium 64
 
 

Another method:
Code:
Start > Accessories > Command Prompt
One more:
1. Open Explorer.
2. Select the drive or folder you want.
3. Hold down the Shift key and right click.
4. Select "Open command window here".
My System SpecsSystem Spec
07 Jun 2010   #7
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

This freebie will save you a lot of hassle:

Karen's Directory Printer


Quote   Quote: Originally Posted by willwin5 View Post
i need a list of everything on my hard drive i can access in a text file without manually pounding the folder/sub folder and contents names into notepad is there anyway this can be achieved?
My System SpecsSystem Spec
Reply

 Windows file contents to text file




Thread Tools





Similar help and support threads
Thread Forum
How to create .bat file to change the text in an .ini file?
I have the original Zoo Tycoon. It has no built in widescreen support, but it's possible to get it by changing some information in its .ini file. I don't want to leave it at that though, as I also have a 4:3 monitor, and I switch between the two. I don't want to have to go into the ini file and...
Gaming
I don't want to search file contents
It seems that I am the only person in the world who wants this, but in nearly all circumstances, I find it a nuisance that Windows Explorer searches in the contents of all files, even if it's impressively fast doing it. I try to give files meaningful and relevant names. All searching the contents...
General Discussion
Searching for file contents
Dear all, I wonder if there is a software out there (preferably free) that can search for files and file contents in Windows 7. I have a lot of notes and documents on my computer and I really need a way to do keyword searches for their contents. More preferably I would need a way to do what...
Software
Windows 7 and Searching File Contents
Hey guys, I'm having an issue with searching file contents. We have a folder set up for emails to be placed for archiving. The folder is shared, and located in a server 2003 machine. From my windows 7 machine, searching "reed" generates no results, but searching "Reed" will correctly find the...
General Discussion
Search text file contents for special character
Hey, I'm trying to search the contents of some text files. The string I am searching for is SAP*. As you can probably guess when I type * I get everything that starts with the word SAP. I tried using ~"SAP*", ~SAP"(*)" etc. but it continues to show me everything that starts with SAP. I can't...
General Discussion
Searching file contents?
Hi all! I reformatted my PC and now I'm unable to get windows built-in search to "work" again. I want to be able to search inside the (hundreds of) files using specific keywords (and to actually search the files, with no indexing bullshit). I know this is possible because I managed to make it...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:15.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App