Batch file - File transfer to server with different domain

April 2018


I’m currently working on transferring files using a batch file and tried it on servers with the same domain, will it also work for servers with different domain?

Your response is very much appreciated!


Hello please use this:

et path=c:WINDOWSsystem32; 

echo Copying started at %date% %time%>>_date_.txt 

xcopy E:backup \SERVERBACKUPothers /s /a /d 

echo Copying finished at %date% %time%>>_date_.txt 

echo Completed Successfully at %date% %time%>>_date_.txt 

echo --------------------------------------------------------------------------- >>_date_.txt 



Thanks to strnnger for this tip on the forum.
Published by aakai1056. Latest update on January 24, 2010 at 10:36 AM by aakai1056.
This document, titled "Batch file - File transfer to server with different domain," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (
Batch to rename using text file for new name
Writing a script to move files