! Adding files will use "-ep1" parameter which will exclude base paths.
TheQwerty's lesson on quoting helped on this one.
I thought on adding icons but this is a matter of personal taste so I left the job for you.
Code: Select all
"Add Files to RAR pack"
$pt = get(selecteditemspathnames); $L = ""; $hour = format(<date>, "hh-nn-ss"); foreach($file, $pt, "<crlf>") { $file = quote("$file"); $L = " " . "$file" . "$L"; } run winrar a "-ep1" newRAR$hour $L;
"Extract RAR pack as it is"
run winrar x "<curitem>";
"Extract RAR packs to Subfolder"
$hour = format(<date>, "hh-nn-ss"); run winrar x "<curitem>" Unpacked$hour\;
XYplorer Beta Club