Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 批处理以将文件复制到另一个文件夹,并将LastModifiedDate添加到目标文件_Batch File_Last Modified - Fatal编程技术网

Batch file 批处理以将文件复制到另一个文件夹,并将LastModifiedDate添加到目标文件

Batch file 批处理以将文件复制到另一个文件夹,并将LastModifiedDate添加到目标文件,batch-file,last-modified,Batch File,Last Modified,提前谢谢 我需要创建一个批处理,使用XCOPY将一个文件复制到另一个文件夹,并需要将上次修改的日期和时间添加到新文件中 源文件为“\Files\Data\Production\EOM Reporting\EOM Working Files\Expanded Aging EOM.xlsb” 目标应为“\Files\Data\Production\EOM Reporting\EOM Working Files\archive\Expanded Aging EOM*LastModifiedDateTi

提前谢谢

我需要创建一个批处理,使用XCOPY将一个文件复制到另一个文件夹,并需要将上次修改的日期和时间添加到新文件中

源文件为“\Files\Data\Production\EOM Reporting\EOM Working Files\Expanded Aging EOM.xlsb”

目标应为“\Files\Data\Production\EOM Reporting\EOM Working Files\archive\Expanded Aging EOM*LastModifiedDateTime*.xlsb”

我试过几种方法,但没有成功


谢谢

LastModifiedDateTime的格式为。。。然后从…中检索值,显示您尝试了哪些方法。