如何将上次修改的文件移动到其他位置? 来源清单:
F:\MY DOCUMENTS\Vishnu srma CV_045485_20130228.doc 3/22/2013 2:40 PM
F:\MY DOCUMENTS\Vishnu srma CV_024867_20130228.doc 3/23/2013 1:40 PM
F:\MY DOCUMENTS\Vishnu srma CV_023556_20130228.doc 3/23/2013 3:50 PM
目标文件夹:
F:\MY DOCUMENTS\zyx
答案 0 :(得分:0)
好的,这应该有效:
@echo off &setlocal
for /f "delims=" %%i in ('dir /b /od "F:\MY DOCUMENTS\*.doc"') do set "source=%%~i"
copy "F:\MY DOCUMENTS\%source%" "F:\MY DOCUMENTS\zyx"