I posed a question some time ago about creating a script to move files and their parent folders from deep inside a 'nested tree' to any other selected folder
The original topic is here if it's of any interest to anyone: http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=5040
Anyway, Jacky came up with a script that works incredibly well...
Code: Select all
$root = inputfolder(<curpath>);
$list = report("{Path}>{Name}<crlf>", 1);
$i = 1;
$files = '';
while (1)
{
$line = gettoken($list, $i, <crlf>);
if ('' == $line) { break; }
$path = gettoken($line, 1, '>');
$file = gettoken($line, 2, '>');
$folder = regexreplace($path, '^.+\\([^\\]+)$', '$1');
moveto "$root\$folder", "$path\$file";
$i++;
}
My guess is it's a 'system' thing and nothing can be done, just wondering
Thanks for any info
Biggy
XYplorer Beta Club