Glam Prestige Journal

Bright entertainment trends with youth appeal.

Setup:

  • Several measurement devices are wired to a local computer.
  • A python application runs on this computer to relay commands to the measurement devices.
  • Measurement devices produce and store measurement files on a folder on the local computer.
  • The python application opens robocopy in monitor mode to transfer these files:

robocopy D:\source \\destination\a\b\c /MOV /NFL /NDL /NJH /NJS /MON:1

D:\source and \\destination are constants. a\b\c is a folder structure read from information inside measurement files.

The problem:

  • When robocopy first starts the a\b\c structure is created if it doesn't exist, which is fine.

  • After some days, a user moves a\b\c from the network folder somewhere else for procesing (measurement files will not be produced during this time).

  • Now that a\b\c is missing from the network folder robocopy will output the following message:

    ERROR 3 (0x00000003) Copying file D:\source\<filename>
    The system cannot find the path specified.

I have looked through the command line options for robocopy without finding anything regarding this.

Have I missed the option in the robocopy Microsoft Docs page? Do I have to manually check if the folder exists and have the python application create it?

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy