Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program on Right Click in Explorer
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00170199
Message ID:
00170427
Views:
17
>Hi Nishit,
>
>> I have writting program for browsing files with some utilities. I wanted that program should come in right click menu in explorer with delete/rename etc options. How can i do that.
>
>If I understand you correctly, you want to have a menu item in the explorer right click menu for certain file types that calls your browser, right? In this case in Explorer go to View|Folder Options|File Types. Select the desired file extension and click on Edit.
>
>In the dialog that appears now, select "New..." and enter the text that should appear in the rightclick menu. In the program line enter the name and full path of your application (EXE) and add the following to it: "%1" (including quotes and separated with a blank from the application name). Whenever the user rightclicks on a file with this type and chooses your menu item, your application is called and receives the name of the file as the first paramter.
>
>All these information are stored in the registry, so you can create those entries programmatically on your clients machines, as well.

Unless each action has a unique executable associated with it, he'll also have to include a parameter that his app can sense to know what action to perform.

If it's a VFP app, it's best to encapsulate the %1 in quotes; VFP parses the incoming command line and will treat spaces embedded in a file name substituted for %1 as separators unless quote encapsulated.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform