Re: Pulling remote server files, placing them in a central location

From: Todd Vargo (todd_vargo_at_nccw.net)
Date: 08/06/04


Date: Fri, 6 Aug 2004 19:15:59 -0400


"dprello" <dprelland@hotmail.com> wrote in message
news:5f4b2bcf.0408060901.77f38bb3@posting.google.com...
> I'm trying to create a script that will do the following:
>
> Over a WAN, pull one file from about 100 servers.
> The file is in the same location on each server.
> The script would pull these files into a central server after creating
> an individual folder for each file.
> I have an account that has confirmed access to all servers.
>
> I've just started playing with scripts recently, if possilbe, I'd like
> some advice on where I'd start or what tpe of scripting to use.
>
> I should be able to write a batch that would create the necessary
> folders (MD) then copy the single file (XCOPY). Would that be
> suffice, or should I look at another alternative?

Yes, that would suffice, however, since you are pulling in 100 files of the
same name, I would copy the files to a single folder and rename them by the
corresponding server names they came from. This will make browsing through
the files much easier.

Whether you start learning with batch or wsh is up to you. Actually, this is
a good problem where you might want to try your hand at both scripting
methods and see which way is easier for you. Depending on the amount of
error checking and logging incorporated into each solution, that may help
you decide which way your time is best spent on future issues.

IMO, batch is best for file management
while WSH is better for data manipulation. YMMV.

--
Todd Vargo (remove hyphen to reply by email)


Relevant Pages

  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script Runs perfectly fine from the command prompt. ... # This is the main Apache HTTP server configuration file. ... LoadModule actions_module modules/mod_actions.so ...
    (perl.beginners)
  • Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Event Log Scripting
    ... Ultimately I want a script which will pull out only 'Error' entry logs from ... dtmStartDate.SetVarDate DateToCheck, CONVERT_TO_LOCAL_TIME ... same script against a server with a few hundred entries it hangs for a very ...
    (microsoft.public.windows.server.scripting)
  • Re: Regarding a selection for mobile code/scripting language
    ... Client Side scripting, so the server can send script commands to the client. ... I decided they should be scripted and mobile code. ...
    (Vuln-Dev)

Quantcast