Author |
Topic  |
|
TigerTom
Starting Member
1 Posts |
Posted - Jan 08 2009 : 04:46:06 AM
|
Hi,
(Love Visual Assist by the way, thanks, have made every employer buy for me so far!)
In VS2008 there is an option to open the "Containing Folder" of the file tab clicked on, this is very handy as often I need to go to that folder to do something (remove COM defs etc...)
In VC++ 6 there is no such option, but I was thinking that if the clever people at Whole Tomato were to add a button to the tool bar that could say open the containg folder of the active document, then there would another reason to buy Visual Assist for VC++ 6! (And would save me constantly navigating to folders!)
Thanks, Tom. |
|
kevinsikes
Tomato Guru
    
USA
271 Posts |
Posted - Jan 08 2009 : 1:05:59 PM
|
Hi Tom,
You can do this by adding a custom tool in VC6. Go to Tools|Customize|Tools and add a new entry with these attributes: Name: Open Containing Folder Command: explorer.exe Arguments: Initial directory: $(FileDir)
Now take note of the position this new tool occupies in the list. It is usually position 7 or 8 if it's the first custom tool you've added. Now go to the Commands tab of Tools|Customize and select Tools in the Category dropdown. Find the tool icon with the appropriate position number and drag it to a toolbar. Pressing this button will invoke your command. You can further customize the button by changing the appearance (for instance, you can open explorer.exe as resources, find the icons, copy a 16x16 icon, and paste it onto the toolbar button.)
Another useful tool: Name: Command Prompt Here Command: cmd.exe Arguments: Initial directory: $(FileDir) Make sure Close window on exiting is checked.
|
Kevin Sikes Infotainment Platform Design Engineer Ford Motor Company |
Edited by - kevinsikes on Jan 08 2009 1:07:43 PM |
 |
|
hoiby
Senior Member
  
France
38 Posts |
Posted - Jan 16 2009 : 05:08:26 AM
|
On my computer (XP + Visual Studio 6) It works only with $(FileDir) as Arguments : Name: Open Containing Folder Command: explorer.exe Arguments: $(FileDir) Initial directory:
|
 |
|
kevinsikes
Tomato Guru
    
USA
271 Posts |
Posted - Jan 17 2009 : 02:38:39 AM
|
Good catch. I left off a single dot for the arguments for the Explorer tool.
As I recall, there was some subtle difference between this: Arguments: . Initial directory: $(FileDir)
and this: Arguments: $(FileDir) Initial directory:
IIRC, one opens in "My Computer" view while the other opens in folder view.
|
Kevin Sikes Infotainment Platform Design Engineer Ford Motor Company |
 |
|
|
Topic  |
|