Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I know I can add a command line argument/option to a shortcut this way; for example:

"C:\Program Files\Internet Explorer\iexplore.exe" www.a.com

So IE will connect to a.com when it starts up. What I would like to do is to get IE connecting to a.com when I call it through another program like the following:

C:\Windows\SysWOW64\ForceBindIP.exe 192.168.1.151 "C:\Program Files\Internet Explorer\iexplore.exe" www.a.com

This does not work. IE starts up but doesn't go to a.com. It seems like the argument is either ignored or is understood as an argument of ForceBindIP instead (I'm not sure).


What I am trying to do is to create 2 IE shortcuts such each of them binds one IE window to one NIC and one particular website. So adding the www.a.com etc in its startup list won't help. OS is Windows 8.

Apologize if this has been asked and answered before. Please suggest keywords for searching if that's the case.

share|improve this question
    
What is the other program that you are calling IE from. Most likely this will be a function of that program. –  EBGreen Nov 26 '12 at 20:11
    
It is Force Bind IP, link According to its page, the option available is "-i" which does something else. –  Pawin Nov 26 '12 at 20:30
1  
The page does claim that arguments are allowed. Unless someone that has used that specific utility wanders along though, it is unlikely that anyone here can answer this question from prior experience. If I were you, I would try to contact the person that wrote the utility. –  EBGreen Nov 26 '12 at 20:49
1  
Starting a new process including what parameters to hand to that new process is always controlled by whatever application is starting the new process. In general, the people that write applications do a good job of this. In this case it looks like the author of the utility has at the very least attempted to do this. It is possible that you are simply making a syntax error. It is also possible that the author is passing the parameters in an odd way. You will need to talk to the author. –  EBGreen Nov 26 '12 at 21:14
1  
Can you create a batch file that says "C:\Program Files\Internet Explorer\iexplore.exe" www.a.com, and then change the shortcut to say C:\Windows\SysWOW64\ForceBindIP.exe 192.168.1.151 foo.bat? –  Scott Nov 26 '12 at 23:43
show 4 more comments

2 Answers

up vote 2 down vote accepted

Create a batch file (called, say, foo.bat) that says

"C:\Program Files\Internet Explorer\iexplore.exe"  www.a.com

and then change the shortcut to say

C:\Windows\SysWOW64\ForceBindIP.exe  192.168.1.151  foo.bat

This lets you work within ForceBindIP’s apparent restriction of handling only

ForceBindIP.exe  IP address full path to app

on its command line (without accepting any parameters for the app), while also providing parameter(s) for Internet Explorer.  (You’ll note that their web page shows only the above usage, although they don’t spell out the restriction.)

share|improve this answer
add comment

For some reason ForceBindIP is ignoring first parameter, so do it like:

C:\Windows\SysWOW64\ForceBindIP.exe 192.168.1.151 "C:\Program Files\Internet Explorer\iexplore.exe" foo www.a.com

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.