Move files of todays date
Posted: 13 Nov 2013 15:28
Hello,
This codes moves all *.xml files from source folder to target folder, creating on date folder.
I want to move only todays date file to target folder.
File name : PRD_005_14112013_132228_01.XML
This codes moves all *.xml files from source folder to target folder, creating on date folder.
I want to move only todays date file to target folder.
File name : PRD_005_14112013_132228_01.XML
Code: Select all
@echo off
set mydate=%date:~-10,2%-%date:~-7,2%-%date:~-4%
Xcopy /E /I "C:\xml_4\xml\*.xml" "D:\Company\%mydate%"
del /s /q "C:\xml_4\xml\*.*"