1.

Solve : Copying specific files across the network?

Answer»

Dear All,

kindly explain how to copying specific files across the network from machine to another machine
 i tried to USING xcopy command with some parameters to do that but i found my batch didn't work properly
, So can any one here to expalin where is my mistake
and write the true command according to my environment as i attached my Bat file here
And i want to copy whole (Atb firmware )folder from on C: root partition and it's content into three files to destination C: root on network machine, i mean i want to create the same folder on destination machine and copy the three files into it in one Bat file order.
Note: I Won't to compress this folder then copy it.

Hope to all my best wishes

[attachment deleted by admin to conserve space]For more explain .
i want to create a folder if doesn't exist then copy files into it on the network machine and if the folder exist and content a files also i want to overwrite on itAbo-Zead,
Please do not send BAT files to the forum.
Also, sending any thing to the root of the C: drive is a bad practice.
Instead, each workstation should have a directory shared with write permission.
You called your batch file xcopy.bat

Use a different name for your script: because the xcopy command inside it will re-launch your batch script instead of using the xcopy.exe command. Quote from: foxidrive on September 12, 2016, 03:47:36 PM

You called your batch file xcopy.bat

Use a different name for your script: because the xcopy command inside it will re-launch your batch script instead of using the xcopy.exe command.
If I had a dollar for every time someone named their batch file the same as a command in their batch file, I would be a little bit wealthier.  Maybe middle class instead of lower middle class. Quote from: Squashman on September 14, 2016, 12:38:10 PM
If I had a dollar for every time someone named their batch file the same as a command in their batch file, I would be a little bit wealthier.  Maybe middle class instead of lower middle class.

That's the way to riches!  I should charge people for the advice. 

A PROBLEM that many of those people will not follow is when the batch file is called using a full path and not in the current directory.    It will work then and they will think "Gee, that guy doesn't know the FIRST thing about batch files".


Discussion

No Comment Found