Code: Select all
::#552; $labels = report("{Name}|"); echo $labels; perm $labels;Ken
Code: Select all
::#552; $labels = report("{Name}|"); echo $labels; perm $labels;Code: Select all
::#552; perm $labels; $labels = report("{Name}|"); echo $labels;Code: Select all
::#552; perm $labels = report("{Name}|"); echo $labels;Absolutely but I though: If I ask for it in my wishes thread you'd argue: No, I'm relying on the windows api andWouldn't you rather like "TheDriveName" instead of "(C:) TheDriveName" to be returned?
Code: Select all
$Rem_Dr = get("drives", 2), "|");
$Dr_Cnt = gettoken($Rem_Dr, "count", "|");
end $Dr_Cnt < "1", "You have no removable drives on-line, aborting!";
if ($Dr_Cnt > "1") {
status "You have more than one flash or external hard drive on-line!"; } // Edit: the closing "}" was inadvertently left out
foreach($root, $Rem_Dr, "|") {
$drive_name = get("drivename", $root, 1);
$drive_label = trim(gettoken($drive_name, 1, " ("));
$drive = trim(gettoken($drive_name, 2, " ("), ")");
echo $drive_label . " is Drive " . $drive; }