Is it possible to delete all files in a directory using XML?



Is it possible to delete all files in a directory but not the actual directory using XML?


Here's what I tried:



<TEST dir="D:\Users\NAME\Desktop\TEST" file="*.docx">
<find find=". -name "*.docx"; -type f|xargs rm -f" />
</TEST>


Please tell me if it is at all possible to do this.


If not is it possible to run a Java file through a XML file?


No comments:

Post a Comment