The wdeploy option returns following exit values:
0: Indicates that the wdeploy option was executed successfully.
1: Indicates that an error occurred while executing the wdeploy option due to invalid command line arguments or invalid content of the configuration files.
2: Indicates that the error is due to operating system settings. Either the specified directory doesn’t exist or the file permission is not set.