更新时间:2021-12-21 07:07:09
创建一个批处理文件并使用任务计划程序运行它:
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