简体   繁体   English

自动将文件从一个本地磁盘保存到另一个

[英]Auto save file from one local disk to another

I have two local drives and one .xlsx file that dropped every day on local drive1. 我有两个本地驱动器和一个每天都放在本地drive1上的.xlsx文件。

Is that possible to auto save that file on local drive2 after it appeared on the first? 在第一个文件出现后,是否可以将文件自动保存在本地drive2上?

Create a text file with following content and save it as Batch File(eg: copier.bat): 创建具有以下内容的文本文件并将其另存为批处理文件(例如:copier.bat):

xcopy  "e:\source_folder\source.xls" "f:\destination_folder" /e /i /h

Here, xcopy is a basic copy command So, when you double click copier.bat your excel file will be copied. 在这里,xcopy是一个基本的复制命令,因此,当您双击copier.bat时,您的excel文件将被复制。 It can be used to copy multiple Files and Folders as well. 它也可以用于复制多个文件和文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM