ToDo: it requires some error-handling - working on it. Any help is appreciated.
Code: Select all
//Sync Timestamps for Several Files Based Off BASENAME
msg "Is TARGET located on active pane and BASE/source of timestamps on the opposite pane?<crlf>Did you selected only ONE file which has a clone on the inactive pane as base for names?<crlf>-otherwise script WILL fail!<crlf><crlf>If you has YES for both questions, please click OK to continue.", 1, ;
$a = "<curbase>";
$b = "<curname>";
focus("pi");
$check = exists("$b");
if ($check == 1) { }
elseif {
end ($check = 0), "File does not exists on the opposite file!";
}
selfilter $b;
$dateFormat = 'yyyy-mm-dd hh:nn:ss';
$rC = report("{Created $dateFormat}",1);
$rM = report("{Modified $dateFormat}",1);
$rA = report("{Accessed $dateFormat}",1);
focus("pi");
selfilter $a;
timestamp m, "$rM";
timestamp c, "$rC";
timestamp a, "$rA";
status "Job done! Who's next?!";Code: Select all
end (<xyver> < "9.70.0009"), "Sorry - this script requires XYplorer version 9.70.0009 or higher.<crlf>Click 'Ok' to exit.";
$b = "<curname>";
focus("pi");
focus;
$c = listpane(, "$b", 1 + 8);
if (Exists("$c")==1) { echo "hi!"; };
else (Exists("$c")==0) { echo "Sorry - try again"; };
XYplorer Beta Club