somits
asked on
Why the script cannot copy a file from one server to another server?
Hi:
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:
//=========
@echo off
set Source=A1:\DATA\File1
set Target=B1:\DATA\File1
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.
Somits
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:
//=========
@echo off
set Source=A1:\DATA\File1
set Target=B1:\DATA\File1
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.
Somits
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.