基于字典的文件复制 [英] file copy based on dictionary

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

问题描述

您好,



我正在尝试将此Robo-copy脚本转换为VB.Net。任何人都可以帮我吗?





Hello,

I am trying to convert this Robo-copy script into VB.Net. Can anyone help me out?


FOR %%E IN (
AAA
AAK
AAB
AAD
AAL
) DO (
robocopy "%CalSource%\esdn\data\%%E" "%CalDest%\esdn\data\%%E" /purge /e /NJH /NJS
)





我想要将文件%calSource%datemodified与其目标文件进行比较,如果是较新的,则从源文件复制它并覆盖现有文件。欢迎任何建议!

James



I want to compare the files %calSource% datemodified with its destination file and if it is newer copy it from source and overwrite the existing. Any advice is welcome!
James

推荐答案

这不是Robocopy脚本,因为Robotscopy没有脚本语言。 />


这是一个DOS批处理文件。它碰巧执行了Robocopy。



这很简单。它只是一个枚举列表中5个项目的循环,可能是文件名,并在其命令行参数指定的每个路径上执行Robocopy。
That's not a "Robocopy script" as Robotscopy doesn't have a scripting language.

That's a DOS batch file. It just happens to execute Robocopy.

It's simple really. It's just a loop that enumerates the 5 items in a list, presumably filenames, and executes Robocopy on each path specified by its command line arguments.


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

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