Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script required to copy files 1

Status
Not open for further replies.

sorrell

IS-IT--Management
Mar 7, 2005
9
GB
Please can any of you vb wizards knock me up a script?

I want to copy files from \\server1\share1 to \\server2\share2\folder

So on server 1 I have a list of files. On server 2 I have a list of folders with the same name. I want the script to copy file1 and place in folder1, file2 into folder2, file3 into folder3, etc.

My files and folders have the following naming convention - surnamefirstname. The name is 8 characters long, upto 5 for the surname and 3 for the firstname, e.g smithian. This could be shorter dependent on the users name, e.g coxdeb

I am not bothered about changing permissions on the folders or anything fancy like that.

Can anyone help me out??
Thanks in advance

 

So, what have you tried so far? And where are you stuck?

Have fun.

---- Andy
 
Unfortunately I do not know where to begin, hence my post..
 
Is this part of a larger program that will be compiled into an executable file (.exe)? If not, it sounds like a job more suitable for a VBScript.

forum329
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top