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

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

Windows 7 Home Premium 64
 
 

My System SpecsSystem Spec
06 Jun 2010   #3

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

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

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

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

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 for2: Windows file contents to text file
Thread Forum
I don't want to search file contents General Discussion
Search text file contents for special character General Discussion
How to extract the contents of an .exe file instead of installing it ? General Discussion
transferring contents of rar file to desktop General Discussion
Searching file contents? General Discussion
search file contents getting worse General Discussion
I give up.. Search file CONTENTS? 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 11:06 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33