script to toggle between xyplorer and teracopy copy handlers
Posted: 04 Jan 2014 06:32
i am using the following script to copy diferent folders data to selected path.
i think it is using xyplorer's default copy handler. when i made xyplorer to use teracopy as external copy handler. this script is giving me trouble. for the smooth running of this code, every time i am making xyplorer as default copy handler and running this code.
hence i need a small script to toggle between different copy handlers and i want to assign this code to button.
thanks in advance.
/* 18.11.2011, Move files and contents of folders to a different (new) folder
::load "<xyscripts>\.snippets\MoveToNewDestination.xys";
*/
$Methode = inputselect(Choose methode for Moving files:, "Browse|Type Path", , 2);
if ($Methode=="Type Path"){
$destination = input("Enter target path");
} else {
$destination = inputfolder( ,select destination folder to move to);
}
setting('BackgroundFileOps', 0);
$FolderList = get("SelectedItemsPathNames", "|");
foreach($FLD, $FolderList)
{
if (exists($FLD)==2)
{
$content = folderreport("files", "r", $FLD, "r", , "|");
foreach($Item, $content)
{
moveto $destination, $Item;
}
} else {
moveto $destination, $FLD;
}
delete 1, 0, $FLD;
}
i think it is using xyplorer's default copy handler. when i made xyplorer to use teracopy as external copy handler. this script is giving me trouble. for the smooth running of this code, every time i am making xyplorer as default copy handler and running this code.
hence i need a small script to toggle between different copy handlers and i want to assign this code to button.
thanks in advance.
/* 18.11.2011, Move files and contents of folders to a different (new) folder
::load "<xyscripts>\.snippets\MoveToNewDestination.xys";
*/
$Methode = inputselect(Choose methode for Moving files:, "Browse|Type Path", , 2);
if ($Methode=="Type Path"){
$destination = input("Enter target path");
} else {
$destination = inputfolder( ,select destination folder to move to);
}
setting('BackgroundFileOps', 0);
$FolderList = get("SelectedItemsPathNames", "|");
foreach($FLD, $FolderList)
{
if (exists($FLD)==2)
{
$content = folderreport("files", "r", $FLD, "r", , "|");
foreach($Item, $content)
{
moveto $destination, $Item;
}
} else {
moveto $destination, $FLD;
}
delete 1, 0, $FLD;
}