Solved

COPYING FILES OVER NETWORK

Posted on 2004-04-05
9
551 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 67

Accepted Solution

by:
sirbounty earned 175 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Telepresence on backup 3 58
VLAN CONFIGURATION 2 62
Network bogged down - slowing down some client PCs 10 41
Blocking outside IP Addresses 16 56
This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

733 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