Execute() Return Codes  | 
     
  DEVELOPER  | 
  ![]()  | 
This table shows possible return codes for the .Execute() method as documented by Microsoft.
 
| 
   Microsoft Error  | 
  
   Decimal Value  | 
  
   Description  | 
| 
   n/a  | 
  
   0  | 
  
   Success  | 
| 
   ERROR_FILE_NOT_FOUND  | 
  
   2  | 
  
   The specified file is not found.  | 
| 
   ERROR_PATH_NOT_FOUND  | 
  
   3  | 
  
   The specified path is not found.  | 
| 
   ERROR_BAD_FORMAT  | 
  
   11  | 
  
   The .exe file is invalid (no-Win32.exe or error in .exe image).  | 
| 
   SE_ERR_ACCESSDENIED  | 
  
   5  | 
  
   The operating system denied access to the specified file.  | 
| 
   SE_ERR_ASSOCINCOMPLETE  | 
  
   27  | 
  
   The file name association is incomplete or invalid.  | 
| 
   SE_ERR_DDEBUSY  | 
  
   30  | 
  
   The DDE transaction cannot be completed because other DDE transactions are being processed.  | 
| 
   SE_ERR_DDEFAIL  | 
  
   29  | 
  
   The DDE transaction failed.  | 
| 
   SE_ERR_DDETIMEOUT  | 
  
   28  | 
  
   The DDE transaction cannot be completed because the request timed out.  | 
| 
   SE_ERR_DLLNOTFOUND  | 
  
   32  | 
  
   The specified dynamic-link library is not found.  | 
| 
   SE_ERR_FNF  | 
  
   2  | 
  
   The specified file is not found.  | 
| 
   SE_ERR_NOASSOC  | 
  
   31  | 
  
   There is no application associated with the given file name extension. This error is also returned if you attempt to print a file that is not printable.  | 
| 
   SE_ERR_OOM  | 
  
   8  | 
  
   There is not enough memory or free resources to complete the operation.  | 
| 
   SE_ERR_PNF  | 
  
   3  | 
  
   The specified path is not found.  | 
| 
   SE_ERR_SHARE  | 
  
   26  | 
  
   A sharing violation occurred.  | 
| 
   SE_ERR_DLLNOTFOUND  | 
  
   32  | 
  
   The specified dynamic-link library is not found.  | 
| 
   
  | 
  
   >32  | 
  
   
  | 
Topic ID: 510017










  