Skip to content

RoboCopyResults does not include -1 (Process/Job exited prematurely) #124

Description

@RFBomb

@PCAssistSoftware
I swear that I had added the '-1' enum to this exit status, along an accompanying boolean status check to one of my pull requests/commits. I can't find out/remember which one had it though.

Anyway, the cause for that is because if the process encounters a serious error that simply causes the process to fail (or you cancel the job via RoboCommand.Cance()), you will get an exit code of -1 because robocopy didn't report a result, the process just exited without finishing.

In my program, since I allow users to cancel jobs, I have to check for the exit code value == -1. I believe this should be value within the enum since it is possible to come across.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions