urgan Posted October 30, 2004 Posted October 30, 2004 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 ?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now