I need a program that will list all files and folders within a specific location and then dump them to a text file or something.
Like if I choose disc D: it will show
[quote]
D:/folder1/
-file1
-file2
D:/folder2/
-file1
-file2
[/quote]
Or something similar. Ability to customize output template is a plus.
I know windows has this tree command, but it doesn't seem to list files.
Thanks
In command prompt:
[code]
cd D:\
dir /s /b > list.txt
[/code]
would output all directories and files within the sub-directories to a text file. Basically everything on your D drive. It won't be pretty, just a plain old list of everything.
Open up Command Prompt
do:
[code]tree /f D:\[/code]
or whichever directory you wish.
Edit -> Copy
Open up notepad
Edit -> Paste
etc
The /f switch makes it display files as well as folders.
[QUOTE=Makuuta;24623567]Open up Command Prompt
do:
[code]tree /f D:\[/code]
or whichever directory you wish.
Edit -> Copy
Open up notepad
Edit -> Paste
etc
The /f switch makes it display files as well as folders.[/QUOTE]
That's a better method than what I suggested.
[code]
tree /f /a > list.txt
[/code]
would output to a text file.
Nobody checks /? anymore. Tisk tisk. :wink:
where would that text file be output to? i tried the above and nothing happened.
[QUOTE=Mattk50;24624362]where would that text file be output to? i tried the above and nothing happened.[/QUOTE]
I think the same directory you put, or the active directory. (ie, if it says "C:\Users\<username>" then it gets put there.) You can always specify the direct path to the text file you want:
[code]/a > C:\list.txt[/code]
[QUOTE=Makuuta;24624713]I think the same directory you put, or the active directory. (ie, if it says "C:\Users\<username>" then it gets put there.) You can always specify the direct path to the text file you want:
[code]/a > C:\list.txt[/code][/QUOTE]
oh... it worked the second time i tried it... thanks
I think my cmd is broken. When I type "cd D:\folder" nothing happens. But if it's in C: it works just fine.
[QUOTE=johan_sm;24625507]I think my cmd is broken. When I type "cd D:\folder" nothing happens. But if it's in C: it works just fine.[/QUOTE]
Does the folder exist?
[QUOTE=Makuuta;24625540]Does the folder exist?[/QUOTE]
Yes. It's right there. It doesn't work. If I move that folder to C drive and use C instead of D it works just fine
[QUOTE=johan_sm;24625581]Yes. It's right there. It doesn't work. If I move that folder to C drive and use C instead of D it works just fine[/QUOTE]
Try typing "D:" and try again?
if cmd is anything like good old DOS, type "D:" in the prompt and it will go to whatever folder you specified with CD.
shit's funky when switching drives.
When I type CD D: it switches to D but then quickly switches back to default folder than is on c :(
not cd d:, just d:
Thanks. It works
Sorry, you need to Log In to post a reply to this thread.