batch file --> text file help

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
thermal
Posts: 1
Joined: 13 Nov 2009 07:47

batch file --> text file help

#1 Post by thermal » 13 Nov 2009 07:52

Dear all,

I am currently running a batch file that examines a backup folder that is added to at the end of each previous day. Currently the batch file uses findstr to examine the original text file (created using the dir command) and filters out the previous days dates to a new text file.
However, at present, the final text file starts with the names of all folders within the backup folder, then the names of folders within these folders, then files within each of these folders:

Backup_folder - folder_1 - folder_A - file_1A
Backup_folder - folder_2 - folder_B - file_1B

Producing a text list =
folder_1
folder_2 etc
folder_A
folder_B etc
file_1A
file_1B etc

However, ideally what I would like is to have the folder names of folders directly contained within the backup folder and then the number of folders and number of files within each of these folders directly after each folder name . . .

Thanks in advance for any help!

Post Reply