Code: Select all
moveto "<curpath>", "<curitem>\*.*";
Code: Select all
moveto "<curpath>", "<curitem>\*.*";
Joso wrote:Is there some method to get multiple items into the <curitem> variable? Thanks.
Code: Select all
$SelectedItems = get("SelectedItemsPathNames", "|");
Code: Select all
//move contents of each selected dir up one level
foreach($token, <get selecteditemspathnames |>) {
moveto "<curpath>", "$token\*.*";
}
There is no DOS command line involved by using XY script.Joso wrote:I seem to bump into old size/memory limits all the time with the PC. - so the size limit on the "get" string is 2,000 or 8,000 or so depending on the code page? - Does this limit apply to any string variable?
What do you need anyway? Maybe i got i wrong.Joso wrote:I have 100 directories that each contain files to be moved up one level (to the current path)
The limit is around 2 billion characters.Joso wrote:no - you've got the concept right - and the script works just fine as long as I don't select too many directories. As I mentioned, each of the direcectories had a name about 70 chars long - so the get string would be maybe 7000 characters with all of them selected at one time. - That's when the script breaks down. Works fine with maybe 20 directories selected. I think there must be a dos or windows related size limit on the length of the get string. Maybe Don would know.