将文本文件从一台服务器复制到另一台服务器

编程入门 行业动态 更新时间:2024-10-26 13:35:13
本文介绍了将文本文件从一台服务器复制到另一台服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

亲爱的朋友, 我有两个服务器,让我们说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.

推荐答案

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

本文可帮助您每隔"X"小时运行一次批处理文件 www.windowsitpro/article/configuration/how-can-i-configure-a-program-batch-file-to-run-every-x-minutes- [ ^ ] 以下脚本使用x和z将驱动器映射到两台计算机. 首先检查连接,如果找到,则将其删除,然后映射驱动器-如果需要密码,则提示将询问用于连接机器的用户名和密码,脚本将复制文件,然后删除映射的驱动器. 如果您需要自动执行用户名和密码,请使用: This article help you to run batch file for every ''X'' hours once www.windowsitpro/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

更多推荐

将文本文件从一台服务器复制到另一台服务器

本文发布于:2023-10-09 18:47:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1476484.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   一台   文本文件   另一台

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!