【问题标题】:Batch file to find file, and copy paste it to another location批处理文件查找文件,并将其复制粘贴到另一个位置
【发布时间】:2013-03-18 03:25:09
【问题描述】:

需要批处理文件的帮助。 我需要的是:找到准确的调用文件(例如从 C: 驱动器)并将其复制粘贴到同一磁盘上的另一个位置。

示例:我需要从 C: 驱动器中找到名为“textfile.txt”的文件,如果找到,它将复制并粘贴到位置 C:\Program Files\Internet Explorer

那么有什么简单的方法吗?

【问题讨论】:

标签: batch-file copy location find paste


【解决方案1】:

试一试:

for /f "delims=" %%i in ('dir /s /b /a-d c:\textfile.txt') do copy /b "%%~i" "C:\Program Files\Internet Explorer"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-01-16
    • 1970-01-01
    • 2013-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-22
    • 2012-04-08
    • 2011-06-04
    相关资源
    最近更新 更多