Code: Select all
$ec_get = quicksearch("* /f /maxdepth=0", <selitems |>,"|");Code: Select all
$ec_get = quicksearch("* /f /maxdepth=0", <selitems |>,"|");Code: Select all
end (<get countselected> == 0), "No item(s) selected, aborted!";
$selectedItems = <get SelectedItemsPathNamesSlashed |>;
$selectedFiles = formatlist($selectedItems, "f", , "!*\");
$selectedFolders = formatlist($selectedItems, "f", , "*\");
if (!$selectedFiles) { // do this... }
// ...
very useful code! as a noob never used this slashed command or definition logic. finally after 5(!) full revisions i think i finished it.highend wrote: ↑25 Jan 2021 00:28Code: Select all
end (<get countselected> == 0), "No item(s) selected, aborted!"; $selectedItems = <get SelectedItemsPathNamesSlashed |>; $selectedFiles = formatlist($selectedItems, "f", , "!*\"); $selectedFolders = formatlist($selectedItems, "f", , "*\"); if (!$selectedFiles) { // do this... } // ...
Code: Select all
end (<get countselected> == 0), "No item(s) selected, aborted!";
$selItems = <get SelectedItemsPathNamesSlashed |>;
$selFiles = formatlist($selItems, "f", , "!*\");
$selFolders = formatlist($selItems, "f", , "*\");
$what = confirm("Exclude: Cansel = Quit|Yes = Folders No = Items|", |, 3, 3);
if ($what == "1") {
$excl_Get = $selFolders . "|" . quicksearch("* /d", $selFolders,"|");
$excl_Get = formatlist($excl_Get, "s");
$excl_GetReplace = "+" . replace($excl_Get, "|", "|+");
$excl_GetFolders = inputselect( , $excl_GetReplace, "|", 1 + 2 + 32 + 64);
$excl_GetReplace = replace($excl_GetFolders, "|", ";");
$excl_GetList = $selFiles . "|" . quicksearch("* /f /maxdepth=0", $excl_GetReplace,"|");
$excl_GetList = formatlist($excl_GetList, "s");
//copy $excl_GetList, 'copy'; #216;
status "Excluded Copy:: list is Ready",, 'ready';
copyto inputfolder( , "Select Folder"), $excl_GetList, <curpath>, 2, 1, -1, 1, , , , , 1;
}
elseif ($what == "0") {
$excl_Get = quicksearch("* /f", $selItems,"|");
//copy $excl_Get, 'copy'; #216;
status "Excluded Copy:: list is Ready",, 'ready';
copyto inputfolder( , "Select Folder"), $excl_GetList, <curpath>, 2, 1, -1, 1, , , , , 1;
}
else {
break 1;
}