Qlik Community

Qlik Education Discussions

Discussion Board for collaboration related to Qlik Education.

Not applicable

I want to write the script where I need to copy one folder from server on multiple servers (100) and same time When I run this batch file I want log file that on how many servers copy successfully completed with date & time.

I want to write the script where I need to copy one folder from server on multiple servers (100) and same time so When I run this batch file I want log file that on how many servers copy successfully completed with date & time.

I am able to copy the folder from one server to others using xcopy command but need help in capturing results.

Please find my current batch file below:-

@echo on

xcopy \\source server\folder \\destination server 1\c$ /e

xcopy \\sourve server\folder \\destination server 2\c$ /e

xcopy \\sourve server\folder \\destination server 3\c$ /e

xcopy \\sourve server\folder \\destination server 4\c$ /e

    Echo %Date% %Time% File Copy %COPIED% to %%destination >> Logfile.txt
)
@echo Completed.
pause

Currently the logs file result is shown in the below format:

Completed Successfully at Mon 12/01/2014 18:39:51.42

I want if destination server name should reflect with status success or failed

Thanks,

Tags (2)
Community Browser