vb script to copy from one location to another network location

hi
i need vb script which will run every minute or so to copy from one physical location to another LAN network location.


Thanks
LVL 11
mattibuttAsked:
Who is Participating?
 
prashanthdConnect With a Mentor Commented:
copy files from folder to folder?

Why not use robocopy?

0
 
Neil RussellConnect With a Mentor Technical Development LeadCommented:
Why not use DFS replication?

What are you trying to achieve?
0
 
Bill PrewConnect With a Mentor Commented:
If you truly need / want a VBS solution, then you will need to be a bit more specific.  What file or files need to be copied?  Are there any subfolders to be dealt with, and if so how?  Should files be overwritten in thedestination?  Etc...

~bp
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
mattibuttAuthor Commented:
The script should automatically copy from source folder to destination folder
There will be two location which I want to copy from main folder to network location
The purpose is to backup these folder since the other server backups all the time and in this location there is nothing critical except these two folders
0
 
Bill PrewCommented:
This does feel like a good problem to solve with ROBOCOPY and the MIRROR option, have you considered a BAT solution?

~bp
0
 
Neil RussellTechnical Development LeadCommented:
IF these are 2 servers in the same domain(?) then surely DFS is the way to go? Replication is then fully automated by your servers themselves and updates happen all of the time, you just set the replication interval.

A good guide to configuring is here -> http://technet.microsoft.com/en-us/library/cc732863(WS.10).aspx
0
 
mattibuttAuthor Commented:
hi
the both servers are part of the same domain the 2nd server is also a domain controller
0
 
Neil RussellConnect With a Mentor Technical Development LeadCommented:
There you go then, set up DFS replication and do the job "Properly" according to Bill :P
0
 
mattibuttAuthor Commented:
i am feeling lazy need more help thing is i have already added the role in the past i dont think i have setup the DFS now the issue is how do i modify the actual File role in Server Management sorry to bother you
0
 
mattibuttAuthor Commented:
thanks guys
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.