Write me a batch file please?

August 27th, 2012 - 07:23 pm ET by Metspitzer | Report spam
Write me a batch file please?

I have two folders with videos. I would like a batch file that prints
the filenames (with or without extension) to a text file and then
sorts the list.
email Follow the discussionReplies 61 repliesReplies Make a reply

Replies

#1 Gene E. Bloch
August 27th, 2012 - 07:50 pm ET | Report spam
On Mon, 27 Aug 2012 19:23:22 -0400, Metspitzer wrote:

Write me a batch file please?

I have two folders with videos. I would like a batch file that prints
the filenames (with or without extension) to a text file and then
sorts the list.



Sorts the list by file length? Date created? Modified? File-name
extension?


You don't need a batch file, just one command:

dir /B /O:N > mylist.txt

This will list just the names with extensions, sorted by name.

Try opening up a command window and typing dir /?
(unless you are unwilling to learn something). This will show a list of
the available arguments, including the other sort options.

Gene E. Bloch (Stumbling Bloch)

Similar topics