Name: aegis Date: May 6, 2008 at 12:25:20 Pacific Subject: Batch code to search for new files OS: XP Home SP2 CPU/Ram: AMD 64/2gb Model/Manufacturer: Generic
Comment:
I need a batch file to search a bunch of sub folders. The following is an example: main\sub1\new main\sub2\new main\sub3\new etc I need to search all the 'new' folders for files. If any are found then display the 'sub?' name followed by the files in its new folder. I would really appreciate it if someone would help me out.
They work fine and it's amazing what you folks can do with just a few lines of code. Mechanix2go's method worked the best for me, but there was one 'minor' problem. The screen overflows with lines showing the empty folder names and 'File not found' mesages for the folders with no files in them. I don't want to appear ungrateful, but it sure would be nice if only the folders 'with files' would show up and those 'file not found' lines wouldn't.
If not, thanks very much guys (or gals as the case might be)!!!!
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE