BUG: Post conversion action on Windows 2000 does not return batch script's exit code

  • 7970627
  • 21-Jul-2009
  • 26-Apr-2012

Environment

PlateSpin Portability Suite 8.1


Situation

When running post conversion batch files/scripts on a windows 2000 operating system, expected exit code is not being returned.
 

This issue occurs only when running batch files that return exit codes using the following syntax on Windows 2000 as part of post conversion:

EXIT /B n (where 'n' represents the exit code and is a numerical value)

Instead of the expected exit code as specified in the batch file, it always returns a 0 (zero)

This issue happens on Windows 2000 because of some peculiarities in the default command shell that executes batch files. It works fine in Windows 2003 & 2008 versions.

Resolution

Workaround
 
Use following syntax to return exit codes:

EXIT n (where 'n' is a numerical value)

 

 

If you have questions about this article please contact PlateSpin Support at support@platespin.com.