Hi!
Firstly, is there a program I can write to go through many subfolders
and change the extension of all the files? Or if I do that myself,
Is there a way to somehow write a program to seek the XML files, if
they're all in groups separated by folders? So, have the program get
the 1st file (using an XML map), edit it (by performing macros I've
already written in Excel), save and close, then go get the next
folder?
I have a series of groups of XML files, all following the same XML Map
in Excel, and I want a macro to bring them in, group by group, saving
them as separate files. I can't seem to figure it out in VB, so maybe
Java will work?
Thanks!
Roedy Green - 28 Jun 2007 21:29 GMT
>Firstly, is there a program I can write to go through many subfolders
>and change the extension of all the files? Or if I do that myself,
>Is there a way to somehow write a program to seek the XML files, if
>they're all in groups separated by folders?
see http://mindprod.com/jgloss/filter.html
http://mindprod.com/products1.html#FILTER
The key is File.list with a FileFilter to get you just the files that
pass some criteria e.g. endsWith(".xml");
Have a look at Batik for code that recursively scans directories.
When you find files you can delete, rename etc .
http://mindprod.com/products1.html#BATIK
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com