﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2092	ShellExecuteWait() receiving incorrect error levels on Windows XP.	Daniel_Freer@…		"Description: Executing a file through ShellExecuteWait() will result in incorrect error levels (exit codes) on Windows XP only. Windows 7/Vista appear to be unaffected.

Steps to reproduce:
(1). Create a batch file to produce an exit code.
{{{ 
@ECHO OFF
REM error.bat
REM Exits with the first argument as an exit code.
Exit /B %1 
}}}

(2). Execute batch file in Command Prompt, then check error level.
{{{
C:\> error.bat 5
C:\> echo %errorlevel%
5
}}}

(3). Execute batch file using AutoIt/ShellExecuteWait, then check error level on Windows XP.
{{{
$errorlevel = ShellExecuteWait(""C:\error.bat"", 5)
MsgBox(64, ""Error Level"", $errorlevel)
}}}

Expected Results:
5

Actual Results:
0 or 1"	Bug	closed		AutoIt	3.3.6.1	None	No Bug	ShellExecuteWait, error level, exit code	
