Top "Return-code" questions

Killing a process with taskkill /F returning code 0

I need to kill a windows process (java.exe). I'm currently using: taskkill.exe /F /IM java.exe I need …

windows process batch-file return-code taskkill
How to return error code from constructor?

I am trying to return error code from constructor, since constructor does not return an error code, I tried to …

c++ exception constructor return-code
How to run ant script from a shell script?

I need to run an ant script from a shell script and if the ant script is executed successfully I …

shell ant scripting websphere-mq-fte return-code
How to check if PSFTP process returns 0 with batch file

I am writing a batch script with takes files from a directory and copies them remotely using psftp. Here is …

windows batch-file putty return-code