Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: a batch script to modify internet otion lan setting  (Read 35859 times)

0 Members and 1 Guest are viewing this topic.

mioo_sara

    Topic Starter


    Intermediate

    a batch script to modify internet otion lan setting
    « on: April 22, 2023, 01:30:27 AM »
    hi to every one

    i have a batch script that change lan setting

    Code: [Select]
    @ECHO OFF
    ECHO Configuring Proxy Settings! please wait...
    REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
    REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d 192.168.170.22:8080 /f
    EXIT

    but how can i read from a config.txt  and copy (ip) its third line(192.168.152.138)  and replace  it with  my  batch  script?
    i hope  that would  be  clear

    my  confg.txt content
    Quote
    Interface: 192.168.152.181 --- 0xc
      Internet Address      Physical Address      Type
      192.168.152.138       4e-53-d0-68-34-bf     dynamic   

    note== config.txt (ip) will be change every day

    thanks again

    mioo_sara

      Topic Starter


      Intermediate

      Re: a batch script to modify internet option lan-setting
      « Reply #1 on: April 23, 2023, 12:44:53 AM »
      this should not difficult  for  all theses masters  of the forum