For copyas() I have to use an full path for the itemlist
but it should be enough to specify the name only
if the item is in the current working folder:
Code: Select all
foreach($i, $items, "<crlf>")
{
if ($i==""){break;}
//copyas [pattern], [targetpath], [itemlist]
//this absolute path for itemlist works:
copyas $i . "_2.xml", ,"<curpath>\Test.xml";
//relative path doesn't works for itemlist:
copyas $i . "_2.xml", ,"Test.xml";
}Test
i have this in the same folder:
Test.xml 10byte
Number1.xml 50byte
Number2.xml 50byte
Number3.xml 50byte
and i want that:
Test.xml 10byte
Number1.xml 50byte
Number1_2.xml 10byte
Number2.xml 50byte
Number2_2.xml 10byte
Number3.xml 50byte
Number3_2.xml 10byte
XYplorer Beta Club