Jump to content

Recommended Posts

Posted

Hi all,

I looking for way to apply a set of commands to the context menu of a removable drive.

I know how to do this to all drives, but there is probably a way to do this only to removable drives (DriveMask on HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shellex\FolderExtensions ) ?

The objective ? Just use sysinternals sync and c'net deveject to flush ad eject usb pens whitout using the braindead "safely remove hardware - please keep clicking buttons and don't forget to close the windows when you're done"

Something like:

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\myeject\command]
@="cmd /k "sync -e -r %1""

But probably a batch since this way it uses the drive as the working dir.

Anyone knows how to apply this only to removable drives, or even better, usb ones, whithout using a fancy vbscript ?


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...