Well, if you knew the original file size of the executable, you could write some code that tells you if the file is corrupt or not if the executable's file size doesn't match the file size specified in your coding. Or you can view this post and try to find some guidance here.
Well Its like this...When I am hex editing exe file.I delete one of the contents and try to run the file as a result an error box is displayed....but for this i hv to do manually.I was thinking if possible we could write "Process.start()" in try of try catch command. Now I dont want to actually run the command but if an error is introduced the catch command displays the output....!!! can we do some thing like this