We help IT Professionals succeed at work.

COPYING FILES OVER NETWORK

escme16
escme16 asked
on
Medium Priority
650 Views
Last Modified: 2010-05-18
CAN SOMEONE GIVE ME A QUICK SCRIPT OR SOLUTION ON HOW TO COPY A FOLDER FROM ONE COMPUTER TO ANOTHER OVER THE NETWORK...
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2007

Commented:
xcopy c:\myfolder\*.* /e /s /v \\myserver\sharename

Author

Commented:
is there anyway to automate this script... And does this have to be run from DOS?

Author

Commented:
And i need to do it between two different machines..
Example:
Copy company folder in server2 to backup folder in server3
CERTIFIED EXPERT
Top Expert 2007
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Commented:
Hello,

The option given by sirbounty is the correct one in dos. The only one to automate it. What you can do is create a file in notepad and name it copy.bat where the bat file is important. This is a batch file. In the bat field put the xcopy..... frase. You can use the scheduled task feature to schedule the batch file copy.bat. And then it is a "windows" feature....
CERTIFIED EXPERT
Top Expert 2007

Commented:
rhandels,
Good explanation - except you shouldn't name a batch/script file the same as any internal command...it'll only cause problems later... :D

How will your system know to run copy.bat versus the internal copy in the command interpreter?  The internal one will be seen first and give you a syntax error...

Commented:
you're right.... eh what else is new here. Points to you sirbounty......

Author

Commented:
I tried the whole scheduled task thing after creating the .bat script but doesn't seem to be working.. i get a 0X4 result...
CERTIFIED EXPERT
Top Expert 2007

Commented:
Try this:

CMD /K xcopy c:\myfolder\*.* /e /s /v \\myserver\share

It should leave a window open and you can diagnose for any errors...
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.