Re: Network Timeout in Script

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 08/12/04


Date: Thu, 12 Aug 2004 17:21:47 +0200

AndyMac wrote:

> Hi,
>
> Hopefully this is the right forum for this question, it isn't strictly
> scripting, more batch files.
>
> Every night I have a "server" (bad use of term, Win XP SP2 machine) running
> a batch file that connects to client machines (mix of Win2K and WinXP) and
> pulls a log file back. The client machine list is editable and pulled from
> a locally stored text file. The problem I have is that if a client machine
> is off the network or shutdown then the server takes a full minute or two to
> timeout on the connection attempt before moving to the next client machine
> name in the list.
>
> Is there anyway I can change this default timeout for network connections to
> allow this batch file to give up on the machine after 5-10 secs or so and
> move to the next one much quicker?
Hi

Ping the computers first to see if they are alive:

http://groups.google.com/groups?selm=eVMQILgVDHA.1600%40TK2MSFTNGP09.phx.gbl

-- 
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx


Relevant Pages

  • Re: scripting vs. batch files?
    ... >| I've been using batch files for ages, ... >| client was Windows 2000 or Windows XP. ... >| Can you incorporate scripting syntax in a batch file or should I stop using ...
    (microsoft.public.windows.server.scripting)
  • Re: Is vbscript appropriate tool?
    ... contrast of using vbscript versus batch files for tasks such as the ... actual scripting examples for just about all the basic functions. ...
    (microsoft.public.scripting.vbscript)
  • Re: scripting vs. batch files?
    ... | I've been using batch files for ages, ... | Can you incorporate scripting syntax in a batch file or should I stop using ... are even macros in Kixtart to directly determine the OS without querying the Registry. ...
    (microsoft.public.windows.server.scripting)
  • RE: Logon Script
    ... I'm not a scripting guru so this is what I use in a batch file. ... ifmember group1 ... > no need to keep batch files. ...
    (microsoft.public.windows.server.scripting)
  • Re: scripting vs. batch files?
    ... Linn ... > I've been using batch files for ages, ... > Can you incorporate scripting syntax in a batch file or should I stop ... or which are the best books? ...
    (microsoft.public.windows.server.scripting)