单个批处理文件,用于将文件从一个文件夹复制和移动到其他文件夹 [英] Single Batch file for copying and moving a file from one folder to other folder
本文介绍了单个批处理文件,用于将文件从一个文件夹复制和移动到其他文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将文本文件从一台服务器移动到其他服务器。与此同时,我想在移动文件的服务器中保留它。所以我希望这个任务是自动的,应该每天运行。
所以我想写一个批处理文件并安排它使用任务调度程序执行。
请帮帮我写一个批处理文件同时执行复制和移动操作。
提前感谢。
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.
推荐答案
这可以通过输入copy /?来实现。在命令提示符下但是你去了:
你可以用命令副本复制文件
copy SOURCEFILE .EXTENSION%cd%\DIRECTORY
%cd%如果您不知道是指当前目录。
是否实现了您的问题?
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?
这篇关于单个批处理文件,用于将文件从一个文件夹复制和移动到其他文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文