Windows 7 Forums


Windows 7: Context Menu with Custom Args.

27 Nov 2009   #1

Windows Se7en Ultimate 32bit Retail
 
 
Context Menu with Custom Args.

Not sure if this is the best forum to post in but here is what I want to do.

I use a program called "ForceBindIP" to bind a specific network adapter to the program I am running. I would like to add an additional context list item to all shortcuts (or specific ones if I can't do that) that allows me to easily choose which IP should be bound. The problem with this is that the command run by the context list item needs to be morphing, or rather, interpretive of what shortcut its on. Example:

shortcut to halo.exe:



Right Click > Open
'C:\Program Files\Halo\Halo.exe'
Right Click > Bind to IP2
'C:\forcebindip.exe 192.168.3.4 "C:\Program Files\Halo\Halo.exe"'

The problem with doing this is that I need the context item to get the final command ("C:\Program Files\Halo\Halo.exe") from the shortcut that you are currently clicking on. Any Ideas? I am currently using custom extensions for each shortcut with two seperate commands each, but the main problem with this is that it must be done for every new shortcut. For example my halo shortcut is Halo.sh2 with the .sh2 extension given two separate handlers for the item, one runs normally, and one binds the IP to that program.

Sorry for the really crazy thought organization in this post. Hope it makes sense.

Thank You all in advance. I will keep up to date on this as I progress with this matter.
My System SpecsSystem Spec

Reply

 Context Menu with Custom Args. problems?



Thread Tools



Similar help and support threads for: Context Menu with Custom Args.
Thread Forum
How do I move context menu items into a cascading context menu? Customization
Relocate WinRAR Context Menu (Context Menu Handlers) Customization
Add open with custom application to context menu Customization
Editing and Adding Custom Context Menu Options Customization
Custom Items on Start Menu Context Menu Customization


All times are GMT -5. The time now is 03:43 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32