New
#1
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?
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?
See this link: MS-DOS command redirection operators
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.
i have no idea how to use the command prompt is it too complicated to explain step by step?
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
The file list will be saved in the file C:\MyFileList.txtCode:C: <ENTER> CD \My Folder\My Files <ENTER> DIR /S *.* > C:\MyFileList.txt <ENTER>
Note: <ENTER> means you have to press the ENTER key.
To get the list of all files in drive D:
Hope that helpsCode:D: <ENTER> CD \ <ENTER> DIR /S *.* > C:\MyFileList.txt <ENTER>
Another method:
One more:Code:Start > Accessories > Command Prompt
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".
This freebie will save you a lot of hassle:
Karen's Directory Printer