Make A Text File List Of Files In A Folder
Posted 16 October 2006 - 11:00 AM
also when putting data onto DVD's it is nice to be able to quickly make a list.
i am sure there is a fast easy way to do this.
BC AdBot (Login to Remove)
Posted 16 October 2006 - 12:09 PM
dont really understand what i am to do.
Posted 16 October 2006 - 12:13 PM
Posted 16 October 2006 - 01:03 PM
Posted 16 October 2006 - 01:41 PM
that is what i am looking for.
The easiest way I know is from a command prompt (Start, Run, cmd). For example: "dir d:\>c:\directory.txt" (without the quotes) will write all file names on your d drive to a file named directory.txt in the root of your c drive. If you need to include contents of subfolders use the /s switch with the dir command. For more options type "dir /?" (without the quotes) at the command prompt.
is there a way to do just one folder on your HD?
i was sucsessful in making txt of a cd but hoping you can give me one more pointer with this.
i tried replacing "dir d:\>c:\directory.txt" to make it read
"dir C:\Documents and Settings\Dell\My Documents\>c:\directory.txt"
colored part indicates what i changed to what.
Posted 16 October 2006 - 01:45 PM
Posted 16 October 2006 - 02:34 PM
i am haveng trouble getting the dir to find just one folder. comes back cant find directory.
any ideas what i am doing wrong?
on the upside i can get the command prompt to work for the whole drive. if it comes to it i could just edit my txt file after i geuss, but i really want to understand this. and thanks for your help.
everyones help. this is a good place
Posted 16 October 2006 - 03:02 PM
CD C:\Documents and Settings\Dell\My Documents
That will Change Directory to your My Documents folder
And then redirect the directory command to a text file in the root of your c: drive
Posted 16 October 2006 - 03:15 PM
You can use relevan switches to specific what you are after.
Open notepad and copy and paste the following text in the quote box into the window:
Save this as fix.bat
CD\Documents and Settings\Dell\My Documents
dir > c:\mydocuments.txt
Choose to save as all files.
This is how the batch must look afterwards:
Doubleclick fix.bat and let the program run.
The list of files/folders in the specified folder will open.
You can replace whatever folder you wish after the "CD" command.
For example if you wanted this: C:\Windows\system32,
Your top line in the batch would be this -- "CD\Windows\system32".
If you want a list of switches let me know and I can copy them out.
Posted 16 October 2006 - 03:22 PM
i have been playing with it and it looks like it doesnt like the spaces in the input names. it works with c:\driver but not for c:\Documents and Settings.
will try this also. ty
Edited by hothett, 16 October 2006 - 03:24 PM.
Posted 16 October 2006 - 04:06 PM
dir "C:\Documents and Settings\<username>\My Documents\My Pictures" /s /n >"c:\some dir\some file.txt"
will give you a list of My Pictures main level and /s will give ya subdirectories as well, and all of it will be sorted by filename (/n) or by date (/d) or extension or whatever you choose, within each subdirectory
<username> change that of course
Go into command prompt as described above and just type dir /?
That'll give you complete description of ALL options and switches.
To write to a file just do the redirection >
Edited by tos226, 16 October 2006 - 04:10 PM.
Posted 16 October 2006 - 04:16 PM
Posted 16 October 2006 - 06:29 PM
For example C:\Documents and Settings\ can also be
**If you need a more detailed explanation, please ask for it. I have the Knack. **
Posted 16 October 2006 - 10:00 PM
thank you all
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users