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 Member

    Aug 13, 2015
    110
    9
    10
    #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.
     
  2. thefireball

    thefireball MDL Novice

    Dec 11, 2015
    6
    0
    0
    Hello

    Happy new year

    Why you want this batch ??
     
  3. ceo54

    ceo54 MDL Member

    Aug 13, 2015
    110
    9
    10
    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.
     
  4. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    872
    457
    30
    I could do it but this would take 30min or something so I wouldn't do it for free.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. sebus

    sebus MDL Guru

    Jul 23, 2008
    5,879
    1,773
    180
    That is NOT nice...
     
  6. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    872
    457
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. SOCRATE_MMXII

    SOCRATE_MMXII MDL Expert

    Jan 25, 2012
    1,034
    315
    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 Addicted

    Oct 18, 2014
    810
    790
    30
    Google NetSNSOR. Not sure if it works with Win 8.1 :confused:
     
  9. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    872
    457
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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
    84
    10
    * Auto connects my default Dial-up connection
    what the hell..who uses a dial-up anymore?
     
  12. TairikuOkami

    TairikuOkami MDL Addicted

    Mar 15, 2014
    638
    473
    30