ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    My complex Windows Copy command stopped working.....

    IT Discussion
    3
    5
    186
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JasGot
      last edited by

      Windows Server 2012 installed these updates on Thursday:
      KB5007300
      KB890830
      KB5007260

      My 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.

      1 Reply Last reply Reply Quote 0
      • DashrenderD
        Dashrender
        last edited by

        What's the error?

        1 Reply Last reply Reply Quote 0
        • J
          JasGot
          last edited by

          It said Syntax Error. 0 Files Copied.

          But..... now it is working....... 🤦

          dbeatoD 1 Reply Last reply Reply Quote 0
          • dbeatoD
            dbeato @JasGot
            last edited by

            @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.

            J 1 Reply Last reply Reply Quote 1
            • J
              JasGot @dbeato
              last edited by

              @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! 🙂

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post