Can somebody create a batch file for me to automate network connection.

Discussion in 'Scripting' started by ceo54, Jan 2, 2016.

  1. ceo54

    ceo54 MDL Addicted

    Aug 13, 2015
    867
    361
    30
    #1 ceo54, Jan 2, 2016
    Last edited: Jan 2, 2016
    Hello,
    Happy new year guys. Is it possible for somebody to make a batch file for me that should do the following:-

    * Executes itself at Windows start up
    * Auto connects my default Dial-up connection
    * ping a specific site with 1 bytes of data at fixed intervals
    * If ping fails, disconnects the connection
    * reconnect again
    * If re connect fails, try infinitively

    I'm on Win 8.1 (x86)

    If anyone does it for me, I'll be eternally grateful to them.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. thefireball

    thefireball MDL Novice

    Dec 11, 2015
    6
    0
    0
    Hello

    Happy new year

    Why you want this batch ??
     
  3. ceo54

    ceo54 MDL Addicted

    Aug 13, 2015
    867
    361
    30
    I get disconnected frequently. I'm using a utility to get re connected but the trouble is that my modem gets disconnected but my windows remain connected to the modem so the utility is unable to detect the loss of connection.

    My computer/network is useless unless i get this to work. Can't download even 100 Mbs without getting it to work.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    895
    482
    30
    I could do it but this would take 30min or something so I wouldn't do it for free.
     
  5. sebus

    sebus MDL Guru

    Jul 23, 2008
    6,356
    2,026
    210
    That is NOT nice...
     
  6. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    895
    482
    30
    I know, I also was stuggeling if I should write it but at the end I think it's better for him to provide a small backup-plan instead of may leave him alone with his problem.
    If someone want's to make it in free time, no problem.
     
  7. SOCRATE_MMXII

    SOCRATE_MMXII MDL Expert

    Jan 25, 2012
    1,033
    318
    60
    #7 SOCRATE_MMXII, Jan 7, 2016
    Last edited by a moderator: Apr 20, 2017
    Here's a few free PING programs:
    http://www.cfos.de/en/ping/ping.htm
    iPing v3.5

    Here's a batch script

    Here's another batch script:
    Code:
                  open notepad 
    ---------------------------------------... 
    type below code for continuous ping  
    ---------------------------------------... 
     
    @echo off 
    cd \ 
    ping google.com -t 
     
    ---------------------------------------... 
    OR ( For Local Network Computer Ping ) 
    ---------------------------------------... 
    @echo off 
    cd \ 
    ping 192.168.0.1 -t 
     
    ---------------------------------------... 
    Type below code for normal ping  
    ---------------------------------------... 
    @echo off 
    cd \ 
    ping google.com 
    Pause 
     
    ---------------------------------------... 
    OR ( For Local Network Computer Ping ) 
    ---------------------------------------... 
     
    @echo off 
    cd \ 
    ping 192.168.0.1 
    Pause  
    ---------------------------------------... 
     
    Save as file name as ping.bat or .bat ( Select Save as file type is all type )         
                                 
            Source(s):       transpacific@yahoo.com 
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Bat.1

    Bat.1 MDL Expert

    Oct 18, 2014
    1,201
    1,388
    60
    Google NetSNSOR. Not sure if it works with Win 8.1 :confused:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    895
    482
    30
  10. glego

    glego MDL Novice

    Jan 23, 2016
    3
    1
    0
    Common! The music is the best part! Unfortunately it stops at 4:15 :weep:
     
  11. Dos_Probie

    Dos_Probie MDL Senior Member

    Jul 18, 2012
    250
    86
    10
    * Auto connects my default Dial-up connection
    what the hell..who uses a dial-up anymore?
     
  12. TairikuOkami

    TairikuOkami MDL Expert

    Mar 15, 2014
    1,172
    1,055
    60