?
Solved

COPYING FILES OVER NETWORK

Posted on 2004-04-05
9
Medium Priority
?
558 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...
0
Comment
Question by:escme16
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 10759710
xcopy c:\myfolder\*.* /e /s /v \\myserver\sharename
0
 

Author Comment

by:escme16
ID: 10759743
is there anyway to automate this script... And does this have to be run from DOS?
0
 

Author Comment

by:escme16
ID: 10759767
And i need to do it between two different machines..
Example:
Copy company folder in server2 to backup folder in server3
0
ATEN's HDBaseT Presentation at InfoComm 2017

Hear ATEN Product Manager YT Liang review HDBaseT technology, highlighting ATEN’s latest solutions as they relate to real-world applications during her presentation at the HDBaseT booth at InfoComm 2017.

 
LVL 67

Accepted Solution

by:
sirbounty earned 700 total points
ID: 10759790
Create a script:

-----bakitup.cmd-----
@xcopy c:\myfolder\*.* /e /s /v \\myserver\share
--------------------

Customize it for both - save it under %systemroot%\system32 (i.e. c:\windows\system32)

Now, simply schedule it from control panel - scheduled tasks to run when you need it to...
0
 
LVL 23

Expert Comment

by:rhandels
ID: 10759801
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....
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 10759836
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...
0
 
LVL 23

Expert Comment

by:rhandels
ID: 10759985
you're right.... eh what else is new here. Points to you sirbounty......
0
 

Author Comment

by:escme16
ID: 10759992
I tried the whole scheduled task thing after creating the .bat script but doesn't seem to be working.. i get a 0X4 result...
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 10765239
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...
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question