延迟复制粘贴文件 [英] Copy Paste Files with delay

查看:68
本文介绍了延迟复制粘贴文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个复制文件并粘贴的脚本.我只想延迟按顺序粘贴文件的时间.粘贴第一个文件-等待10秒-粘贴第二个文件-延迟10秒-粘贴第三个文件-...

I have a script which copy files and paste. I just want to have a delay which paste files in order. Paste first file - 10 sec wait - Paste second file - 10 sec delay - Paste third file -...

这是我的脚本,可以复制所有文件

This is my script which copy all files

set source=C:\Users\kco2bu\Desktop\Deneme\Copy
set destination=C:\Users\kco2bu\Desktop\Deneme\Paste
xcopy %source% %destination% /y

推荐答案

单独复制每个文件:

set "source=C:\Users\kco2bu\Desktop\Deneme\Copy"
set "destination=C:\Users\kco2bu\Desktop\Deneme\Paste"
for %%a in ("%source%\*") do (
  xcopy "%%~fa" "%destination%" /y
  timeout -t 10 >nul
)

这篇关于延迟复制粘贴文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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