My complex Windows Copy command stopped working.....
-
Windows Server 2012 installed these updates on Thursday:
KB5007300
KB890830
KB5007260My copy command ran fine on Friday.
The server rebooted on Saturday and my copy command started failing with Syntax error.Here is my copy command:
copy \\bsastore\BSA\WSReaderData\METEREXPORT.TXT \\bsastore\BSA\WSReaderData\ExportHistory\METEREXPORT_%time:~0,2%%time:~3,2%%time:~6,2%_%date:~-10,2%%date:~-7,2%%date:~-4,4%.txt
The results of the copy should be METEREXPORT_HHMMSS_MMDDYYYY.txt
Actual successful result from before:METEREXPORT_173001_11122021.txt
Any thoughts? I don't see anything in those three updates that would affect this.
-
What's the error?
-
It said Syntax Error. 0 Files Copied.
But..... now it is working.......
-
@jasgot said in My complex Windows Copy command stopped working.....:
It said Syntax Error. 0 Files Copied.
But..... now it is working.......
Well, maybe a reboot happened or it couldn't read the data and then now it can.
-
@dbeato said in My complex Windows Copy command stopped working.....:
@jasgot said in My complex Windows Copy command stopped working.....:
It said Syntax Error. 0 Files Copied.
But..... now it is working.......
Well, maybe a reboot happened or it couldn't read the data and then now it can.
Possibly. I'm glad is doesn't need any more head-scratching!