Categories
News

Update on Explore Tool

MikeG reported that he wasn’t able to get the Explore Tool in Delphi to work in XP.  I tried it on XP today and it worked fine.  It might be that something was missed.  Here is a nice reference of the important bits from that screen cast:

Go to Tools / Configure Tools / Add

Adding an Explore Tool

The Title can be anything you want.  The program is Explorer (the .exe is optional) and the parameters must be /select, $edname (be sure you remember the comma!)

That should do it for you to open an explorer window with the currently edited file selected.

Update: More explorer parameters.

5 replies on “Update on Explore Tool”

Title=&Explore has a bad choice for accelerator since it clashes with &Editor options (at least it does on my decrepit Delphi 6 install). E&xplore would be better.

Nice tip though. By the way, what’s your recommended source for explorer.exe command line parameters. I remember looking for info on that quite a while ago and drawing a blank.

Seems like there were more parameters, but this is the best I have been able to find. Maybe the others were removed or are undocumented.

http://support.microsoft.com/kb/152457

Explorer [/n] [/e] [(,)/root,] [/select,]

/n Opens a new single-pane window for the default
selection. This is usually the root of the drive
Windows is installed on. If the window is already
open, a duplicate opens.

/e Opens Windows Explorer in its default view.

/root,Opens a window view of the specified object.

/select,Opens a window view with the specified folder,
file or application selected.

@Issam: “$PATH($PROJECT)” would get you to the directory, but “/select, $edname” actually selects the current file in that directory. Very handy if you have a lot of files in your project or actually want to operate on that file.

Comments are closed.