I am trying to write a batch file that will start at Drive A, search for files with the extension of FDB and make a list of those filenames and paths, and save to a text file. If there is no disk or flash drive, I prefer it continue, not stop with a fatal error.
Example:
A:
cd\
DIR *.FDB/S/B > C:\FDBDATA\ADATA.DAT
B:
cd\
DIR *.FDB/S/B > C:\FDBDATA\BDATA.DAT
C:
cd\
DIR *.FDB/S/B > C:\FDBDATA\CDATA.DAT
...and so on until Drive Z.
At the end of creating the files, I can combine them to make one data file. This is the file I am looking for.
My efforts fail when there is no floppy, flash, or pen diskette/drive in those letters. When there is no floppy/pen, I would prefer it just try the next letter and keep on going.
After creating those files, I can combine them and use them for a genealogy program. It would be nice if this would run minimized so a new user won't get stressed at seeing all the commands.
Any ideas please?
Thank you very much.
Abatch User