1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Resolved Shortcut to TCP/IP settings in LAN

Discussion in 'Networking (Hardware & Software)' started by amkeew, 2009/01/14.

  1. 2009/01/15
    noahdfear

    noahdfear Inactive

    Joined:
    2003/04/06
    Messages:
    12,178
    Likes Received:
    15
    I hope you do too.

    BTW, would you pass along the link where you found the batch? I know how I'd write one to do that, but am always curious how others would go about doing such things too.
     
  2. 2009/01/15
    amkeew

    amkeew Inactive Thread Starter

    Joined:
    2008/12/27
    Messages:
    60
    Likes Received:
    1

  3. to hide this advert.

  4. 2009/01/15
    noahdfear

    noahdfear Inactive

    Joined:
    2003/04/06
    Messages:
    12,178
    Likes Received:
    15
    Make a batch out of the contents of the code box below. Should be 1 click to switch. ;)

    Code:
    @echo off
    echo Please wait
    ipconfig>temp0
    type temp0 | findstr /i  "address" >temp1
    for /f  "tokens=15" %%i IN (temp1) do (
    echo @echo off>fix.bat
    echo if %%i==192.168.1.10 set j=192.168.1.13>>fix.bat
    echo if %%i==192.168.1.13 set j=192.168.1.10>>fix.bat
    echo netsh int ip set address  "local area connection" static %%j%% 255.255.255.0 192.168.1.1 1 >>fix.bat
    call fix.bat
    )
    del /q temp0
    del /q temp1
    del /q fix.bat
    exit
    
     
  5. 2009/01/15
    amkeew

    amkeew Inactive Thread Starter

    Joined:
    2008/12/27
    Messages:
    60
    Likes Received:
    1
    Cool. Thanks Dave. Works like a charm.

    Do you mind if I share it in the other above forum ?
     
  6. 2009/01/15
    noahdfear

    noahdfear Inactive

    Joined:
    2003/04/06
    Messages:
    12,178
    Likes Received:
    15
    No, I don't mind. Just make sure to note all addresses are conditional and should be adjusted for each environment in which it is used.

    Now, please don't blow off getting your IT guy to correct the situation. ;)
     
  7. 2009/01/15
    amkeew

    amkeew Inactive Thread Starter

    Joined:
    2008/12/27
    Messages:
    60
    Likes Received:
    1
    Thanks Dave. I didn't even realize till now that you had actually put in my IP address in your code. I just copied it and just ran with it. :p

    I appreciate your thoughtfulness in this.

    I will just link up this page in the other forum instead of posting the code.

    Yes, I will follow up with my IT guy. Seems he is on a holiday.
     
  8. 2009/01/15
    noahdfear

    noahdfear Inactive

    Joined:
    2003/04/06
    Messages:
    12,178
    Likes Received:
    15
    Entering your addresses in such a simple batch was necessary due to working with static IPs.

    A more complex batch could be created that would gather the necessary information to use variables for the subnet mask and default gateway. I've even come across methods that will check for IP addresses not in use on the network, which could be used to apply any available IP within range. :)
     
  9. 2009/01/16
    amkeew

    amkeew Inactive Thread Starter

    Joined:
    2008/12/27
    Messages:
    60
    Likes Received:
    1
    Dave

    Finally, tracked down my IT guy (a freelancer). Now he tells me it could be the lan network configuration problem in my office. Asked him to move his ass to my office next week. Will keep you posted.

    But I sure learnt something here about those dos commands. Never had an interest before to learn those geeky stuff. Thanks for your help and time.
     
  10. 2009/01/22
    amkeew

    amkeew Inactive Thread Starter

    Joined:
    2008/12/27
    Messages:
    60
    Likes Received:
    1
    Dave. I caught hold of my IT guy at last. Hurray !

    We had two LAN routers connected to two different telephone lines. It seems both routers had the same IP address in their inputs. He asked us to assign two different IP addresses for the routers and voilà, the problem went away. It's been two days since we did the IP change and no problem so far.

    But I am still safe-keeping your program. ;)

    Thanks for all your help and time.
     
  11. 2009/01/23
    noahdfear

    noahdfear Inactive

    Joined:
    2003/04/06
    Messages:
    12,178
    Likes Received:
    15
    Two routers ....... who would have guessed. Thanks for posting back with the results. Glad I could help. :)
     
  12. 2009/02/12
    kimsland

    kimsland Inactive

    Joined:
    2009/02/12
    Messages:
    356
    Likes Received:
    3
    Hi

    Sorry to bring up an older thread, but it came up on a Google search

    I'm trying to get the Run command direct shortcut to internet protocol tcp ip properties window

    ie Start->Run-> ncpa.cpl <- But not this Window, but the Properties Window, ideally internet protocol tcp ip properties window

    Now, I'm very experienced (um Very) But I have spent at least 2 Hrs trying to work this out, even using the older FileMon (the newer one "Process Explorer" I found more difficult strangely)

    There must be a shortcut, because it does open, ie something is calling it. But I have searched and searched, the closest I've got is: rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl,,4
    Which doesn't work :(

    Does anyone know the exact Run command shortcut to TCP/IP properties Window :confused:

    Edit:

    Well I give up :(

    All I've got is a whole bunch of open the Network Folder, via Run

    "explorer.exe" sParams = "::{7007ACC7-3202-11D1-AAD2-00805FC1270E} "

    file:///::{7007ACC7-3202-11D1-AAD2-00805FC1270E}

    file:///::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}

    It just doesn't exist ! (well I'm open to others suggestion)
     
    Last edited: 2009/02/12

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.