6

I would like to open a third party (i.e.: Rufus) application when I right-click on a drive and select format..

How do I go about doing this?

For items like Notepad, I can just swap the file in windows system folder, this does not seem to work in this particular case, or at least, I haven't found a way to do so.

2 Answers2

3

The Format command in Explorer is built-in and not easily modified.

One poster has deeply analyzed the problem and summarized his efforts in the post Replace Windows' drive format tool with Rufus, where he is asking for help in creating a full solution. Unfortunately, I don't see any way to finish his work.

It would have been possible to add a Rufus entry to the context-menu of all drives with a registry update such as the below .reg file (very generic and untested):

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Drive\shell\rufus]
@="Rufus on drive"

[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="\"C:\Program Files (x86)\Rufus\Rufus.exe\" %1"

Unfortunately, this would be useless, since the Rufus Wiki post Command line arguments #111, where users ask for command-line arguments for Rufus, has this final text from the Rufus developer:

I have to stress out, commandline support is at least years away, so there's no way I'm going to go into details on how I'm planning to address something that is that far out, as things can and do change when a lot of time elapses.

Without command-line support, there is no way to pass the drive-letter to Rufus. Therefore there is no point in adding such an entry to the context-menu of Explorer, as all it would do would be to call up Rufus, just the same as calling it from the Start Menu or from a desktop icon.

harrymc
  • 498,455
0

You can't as long as you use windows explorer. Format doesn't seem to be an application by itself, but a context of explorer itself.

You'll notice that when you select format, the whole context it's of the drive that was already highlighted on This PC.

If you hover over it with process explorer target icon, you'll notice that it never show's a program running, but if you expand COM Surrogate you'll see the window in there, thus making the format tool a library being used by explorer to show the format tool. There are many reasons for this but I don't think there's a way to replace this without replacing explorer, probably you can interface with Format tool, and you may be able to expand it, but not replace it, and when I mean to expand it I mean create a separate tool off of that tool, not replace the one that shows up in the context menu.

I know it may not sound complete, but it's the best I've got.

ddemuro
  • 31
  • 2