Does Xyplorer have an eject command?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
laugust
Posts: 22
Joined: 12 Feb 2011 09:06

Does Xyplorer have an eject command?

Post by laugust »

I have a tab locked at the root level of my computer - showing all drives. I typically click on one of the flash drives in the list and eject it by right-clicking on it and selecting "Eject" from the context menu that pops up. Does XYplorer have a keyboard shortcut that can do this? If not, does someone have a script that can be triggered by a keyboard shortcut and which ejects the selected disk? TIA for any help.

XY fan
Posts: 192
Joined: 24 Mar 2022 10:58

Re: Does Xyplorer have an eject command?

Post by XY fan »

I use USB Safely Remove for that type of thing. Does what you want (I think) and much more.

highend
Posts: 14279
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Does Xyplorer have an eject command?

Post by highend »

https://www.uwe-sieber.de/drivetools.html

Code: Select all

    $rd = "{path where you've copied it}\RemoveDrive_x64.exe";
    end (exists($rd) != 1), quote($rd) . " not found, aborted!";

    $path = <curpath>;
    end (regexmatches($path, "^[a-z]:.+")), "No drive root active, aborted!";

    goto "Computer";

    run lax("$rd" $path -b);
One of my scripts helped you out? Please donate via Paypal

Post Reply