-
May 3rd, 2012, 07:09 AM
#1
Xcopy between two servers
Hi everyone, I am trying to move files from one folder (server 1) to another folder(server 2) through command xcopy . I am using the editor dev c++. My code works fine if i have to move file within single server but gives error " Invalid parameters " if i am trying between servers.
Here is the code
int main(int argc, char *argv[]) {
time_t start, stop;
clock_t ticks; long count;
time(&start);
int i=0;
while(1)
{
time(&stop);
if(difftime(stop, start)== 60) // moving file after every one min
{
//abc is my folder and have to move to test folder of another server
//have replaced server name wid server 1 and 2
system("xcopy server1\C:\abc server2\share\C:\test /e/v/s/f/q");
system("del c:\\abc /s");
time(&start);
}
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|