How do I get it to send the extension to a new text file?
Code: Select all
$fileTypes = "{:Archive}|{:Audio}|{:Executable}|{:Font}|{:Image}|{:Media}|{:Office}|{:Photo}|{:Text}|{:Vector}|{:Video}|{:Web}";
$maxStrLen = 15; // "{:Executable}"
$content = "";
foreach($entry, $fileTypes) {
$entries = recase(formatlist(regexreplace(get("genericfiletype", $entry, ","), "\*\."), "s", ","), "l");
$content = $content . $entry . strrepeat(" ", $maxStrLen - strlen(quote($entry))) . ": " . $entries . <crlf>;
}
text $content;
XYplorer Beta Club