Forum Home
Press F1
 
Thread ID: 134590 2013-07-17 01:32:00 Utility sought DeSade (984) Press F1
Post ID Timestamp Content User
1349115 2013-07-17 01:32:00 I need a utility that will take the folder (or file) names from a directory and output a txt file.
Don't want to mess around with a dos prompt to do it.

Any suggestions?
DeSade (984)
1349116 2013-07-17 02:05:00 This? There's a free and Pro version (www.infonautics.ch) Speedy Gonzales (78)
1349117 2013-07-17 02:08:00 That looks like it will do the job.
Cheers
DeSade (984)
1349118 2013-07-17 02:09:00 No probs Speedy Gonzales (78)
1349119 2013-07-17 02:10:00 Powershell: get-childitem <starting directory> -recurse | select-object FullName | out-file <output file>
e.g.: get-childitem c:\ -recurse | select-object FullName | out-file c:\fileout.txt
will give you a recursive list of everything on c:\ (well, everything the user you're logged in as has permission to see) and output it to c:\fileout.txt
inphinity (7274)
1349120 2013-07-17 03:37:00 I know you said no DOS but... The dos command is Dir >list.txt
If you create a text document called list.bat in notepad and put that line in, copy to the directory, and double click it you'll get your file.

You can use any of the DOS switches as well Dir /D >list.txt works quite well for example.

If you put " >filename.txt" on the end of most dos commands that generate text it'll output to a file instead of the screen
dugimodo (138)
1349121 2013-07-17 03:43:00 Likewise, dir /b /d /s will give you a recursive list of all files & subfolders within the current folder, the same as my powershell suggestion above ;) inphinity (7274)
1349122 2013-07-17 04:14:00 Yeah /b is probably what you're after, means "bare list", so you don't get filesizes etc...

Best part is this is already on *every* system!
dir /b > file.txt

Easy :D
Chilling_Silence (9)
1