Batch file - File transfer to server with different domain

September 2017




Issue


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!

Solution


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 

pause 

Note


Thanks to strnnger for this tip on the forum.

Related

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 (ccm.net).