Re: Pulling remote server files, placing them in a central location
From: Todd Vargo (todd_vargo_at_nccw.net)
Date: 08/06/04
- Next message: Kevin Liu: "Can't have WScript object when I try to parse VBScript in ParseScriptText"
- Previous message: Anthony LaMark: "Re: Execute unix batch from a windows program"
- In reply to: dprello: "Pulling remote server files, placing them in a central location"
- Messages sorted by: [ date ] [ thread ]
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)
- Next message: Kevin Liu: "Can't have WScript object when I try to parse VBScript in ParseScriptText"
- Previous message: Anthony LaMark: "Re: Execute unix batch from a windows program"
- In reply to: dprello: "Pulling remote server files, placing them in a central location"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|