Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to move a text file from one server to other server. At the same time, I want to keep a back of it in the server from which file is being moved. So I want this task to be automatic and should be run everyday.
So I want to write a batch file and schedule it to execute using Task scheduler.
Please help me to write a single batch file to perform both copy and move operations at the same time.

thanks in advance.
Posted
Comments
[no name] 2-Aug-13 7:16am    
Okay..... so what kind of help is it that you need? What have you tried?

1 solution

This can be achieved by typing copy /? in command prompt but here you go:

You can copy files with the command copy

copy SOURCEFILE.EXTENSION %cd%\DIRECTORY

%cd% if you do not know means current directory.

Does the achieve your problem?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900