Why the script cannot copy a file from one server to another server?
Posted on 2007-11-21
I'd like to create a simple scheduled task which copies a file from one server, say A, to another server say B. Assumed that on A, the file is in A1\DATA\file1 and I would like to copy to B inot the folder B1\DATA\file1
I already shared the the folder B1so that with the same account log in on A, that account ahs full control of B1.
I've tested do manually copy file 1 from A to B and it works correctly.
Then I write a text file (using note pad) with the following content:
copy "%Source%" "%Target%"
Then I create a scheduled task (control panel --> Scheduled Task --> ...)
And I run the task to test but the task does not copy the file from A to B as expected.
Do you know what causes this problem.
Thanks a lot.