Configuring a job that runs a cmd system command

  • Hello everybody,

    I've got a question, it happens that I have a job, I want this job to execute two steps, the first one is to make a backup, I don't have problems with this, but the second step is to copy this backup to another folder or carpet, I know that this second step is setting this as a cmd system command, I have something like this, but it doesn't work:

    COPY D:\archivo.BAK  D:\PRUEBA\archivo.BAK

    this is the second step, the first one is the backup, and it has the option go to the next step (2) on success action.

    maybe this is not the roght way of writing the instruccion, or ???

    any suggestion,

    thanks a lot everybody, bye !!!

     

     


    L.I. Amaury C.R.

  • Most likely a permissions issue. Right click the job and view hsitory then step details to see what it says is the error if available. This si the first thing to do.

  • Also, if the filename ist allways the same, you should use:

    COPY /Y D:\archivo.BAK D:\PRUEBA\archivo.BAK

    ^

    Otherwise the copy-cmd just results in a prompt if overwriting is acceptable, and never finishes the copying.

    Karl

    Best regards
    karl

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply