Batch file - File transfer to server with different domain

October 2016


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.

Related :

This document entitled « Batch file - File transfer to server with different domain » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.