Windows批处理脚本移动文件 [英] Windows batch script to move files

查看:1853
本文介绍了Windows批处理脚本移动文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从一个目录移动到另一个文件在Windows中,我需要在一个批处理脚本写这个。

I need to move files from one directory to another in windows, and I need to write this in a batch script.

我们已经写在那里的备份文件将创建每4小时对 D一个SQL作业:驱动器和最后4个备份文件会被保存,其他人将被删除。

We have written a SQL job where backup files will be created every 4 hours on the D: drive and last 4 backup files will be saved and others will be deleted.

我需要写一个批处理脚本,将这些文件从 D移动开车到 E:驱动器每10小时

I need to write a batch script to move these files from the D: drive to the E: drive every 10 hours.

谁能帮我写这个剧本。

推荐答案

创建一个名为MoveFiles.bat文件,语法

Create a file called MoveFiles.bat with the syntax

move c:\Sourcefoldernam\*.* e:\destinationFolder

然后安排一个任务运行MoveFiles.bat每10小时。

then schedule a task to run that MoveFiles.bat every 10 hours.

这篇关于Windows批处理脚本移动文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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