将文本文件从一台服务器复制到另一台服务器 [英] Copying Textfiles From One Server to Another Server

查看:124
本文介绍了将文本文件从一台服务器复制到另一台服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我有两个服务器,让我们说A和B.

每日文本文件将在上午7:30上午更新并存储在服务器A中...和
现在我需要将这些服务器A文本文件自动复制到服务器B.

注意:它应自动在上午8:00 AM之前从服务器A复制到服务器B.

请谁能帮助我.

Dear Friends,

I have Two SERVERS, Let us say A and B.

Daily Textfiles will be updated and stored in Server A at morning 7:30 Am... and
now i need to copy these Server A text file to SERVER B Automatically.

Note : Automatically It should Copy from SERVER A to SERVER B before Morning 8:00 AM.

Please can anyone help me.

推荐答案

创建一个批处理文件并使用任务计划程序运行它:
http://www.windowsnetworking.com/articles_tutorials/Working-Windows- Server-2008-Task-Scheduler-Part1.html [ ^ ]
Create a batch file and run it with the task scheduler :
http://www.windowsnetworking.com/articles_tutorials/Working-Windows-Server-2008-Task-Scheduler-Part1.html[^]


本文可帮助您每隔"X"小时运行一次批处理文件

http://www.windowsitpro.com/article/configuration/how-can-i-configure-a-program-batch-file-to-run-every-x-minutes- [
This article help you to run batch file for every ''X'' hours once

http://www.windowsitpro.com/article/configuration/how-can-i-configure-a-program-batch-file-to-run-every-x-minutes-[^]

The following script maps a drive to both machines using x and z.
First checks for a connection and if found removes, maps the drive - if there is a password needed a prompt will ask for a username and password for the machine to connect with, the script will copy the file then remove the mapped drive.
If you need to automate the username and password use:
net use x: \\172.25.0.71\c


/user:domainorcomputername \ username密码|用户密码 这是脚本: @回声关闭 如果存在x:(net use x:/delete) 如果存在z:(net use z:/delete) 净使用x:\\ 172.25.0.71 \ c
/user:domainorcomputername\username password | theuserpassword Here is the script: @echo off if exist x: (net use x: /delete) if exist z: (net use z: /delete) net use x: \\172.25.0.71\c


这篇关于将文本文件从一台服务器复制到另一台服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆