问题描述
全部好,
我是批处理脚本的新手,任何人都可以指导我满足以下要求。
要求:
我有一台服务器1(Windows),我有C:驱动器和D:我需要将一些文件从C:驱动器复制到D:驱动器。
我创建了一个批处理脚本,使用copy命令复制服务器1中的文件,并且工作正常。
我的要求是,我需要触发该批处理Server2(Windows),以便在Server1中执行文件副本。
请问如何帮助,如何在批处理脚本中提供Server1的连接详细信息?
如果您需要任何其他详细信息,请与我们联系。
提前致谢。
HI All,
I am new to batch scripting and can anyone guide me for my below requirement.
Requirement:
I had a Server 1(windows) and in that i had C: drive and D: and i need to copy some files from C: drive to D: drive.
I created a batch script to copy the files with in the Server 1 using copy command and it worked fine.
My requirement is, i need to trigger that batch from Server2(Windows) so that the copy of files should be performed in Server1.
Can you please help in, how can i provide the connection details of the Server1 within the batch script?
Please let me know, if you need any other details.
Thanks in Advance.
这篇关于从一个Windows服务器运行批处理脚本并在另一个Windows服务器中执行操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!