• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Help with script

G

Gavin

#1
Hello,

I need help with a script, what I would like it to do is scan though a share
look for a particular file, copy the file and rename it to the name of the
computer that it was on... for example the file is acb123.txt ... search for
that file and then once it is found rename it to computer1acb123.txt... any
help would be appreaciated.

Thanks
Gavin...
 
B

Bob Bridges

#2
Hey, Gavin. What have you attempted so far? My guess, from your post, is
"nothing" - you've never written a VBS script before and you're starting from
scratch. Nothing wrong with that, but it calls for a different answer than
if you're fairly experienced and just need a hint. So fill us in, please,
and let us know how much you know so far.

--- "Gavin" wrote:

> I need help with a script, what I would like it to do is scan though a share
> look for a particular file, copy the file and rename it to the name of the
> computer that it was on... for example the file is acb123.txt ... search for
> that file and then once it is found rename it to computer1acb123.txt... any
> help would be appreaciated.