Hi,
I have a folder called "clips", inside this folder are .avi clips and folders (folders are empty). How would I go about listing the folder names and the .avi names into a simple text document? So:
examplefolder1
examplefolder2
example1.avi
example2.avi
I don't want the script to rename anything, I just want it to list the all the folders and .avi clips. Can this be done via batch?
Thanks
Listing of x folder's content?
Moderator: DosItHelp
Re: Listing of x folder's content?
If folder's names have not dots
otherwise
Code: Select all
dir /b /o:e > list.txt
otherwise
Code: Select all
dir /a:d /b > list.txt
dir *.avi /b >> list.txt
-
- Posts: 44
- Joined: 01 Jan 2011 20:54
Re: Listing of x folder's content?
if you also want the contents of the subfolder under "clips", then add:
right after the
in !k's script above
Code: Select all
/s
right after the
Code: Select all
/b
in !k's script above