Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 VC++ 6 - Open Containing Folder
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

TigerTom
Starting Member

1 Posts

Posted - Jan 08 2009 :  04:46:06 AM  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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
Go to Top of Page

hoiby
Senior Member

France
38 Posts

Posted - Jan 16 2009 :  05:08:26 AM  Show Profile  Reply with Quote
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:


Go to Top of Page

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Jan 17 2009 :  02:38:39 AM  Show Profile  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000