Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



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.





Thread Tools




Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 05:06 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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 33