Hello Experts Exchange
I am trying to write a bat file that will copy files from a folder that is a UNC path.
I have a bit of the script ready that give me the month. Which I put into a variable called mydate.
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=\%%a\)
Xcopy "\\ntserver2\data"%mydate%"AC4\Moulding\*.*" "Y:\GGR\moulding"
Does anyone know how I can get this to work as the XCopy line does not work.