If you wanted to make a sub folder based on date you could use something similar to this:
var year = qie.formatDate('YYYY', qie.deduceDate(source.getNode('MSH-7')));
var month = qie.formatDate('MM', qie.deduceDate(source.getNode('MSH-7')));
var folder = "" + year + "-" + month;
var fullPath = qie.evaluateTemplate("\\\\ServerName\\Test-ADT\\New folder\\{c:folder}\\");
var fullPathDirectory = new java.io.File(fullPath);
if (!fullPathDirectory.exists()) {
fullPathDirectory.mkdirs();
}
messageCache.setValue('fullPath', fullPath);
For the destination node use the following:
{c:fullPath}\*.*