﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3162	RunWait command does not return the exit code of the program that was run on XP systems	PTim		"I have observed that the RunWait function does not return the exit code of the program that was run on Windows XP SP3 systems.
It runs fine on Windows 7 SP1.

I have 2 test script samples:
mytest.bat - which will return exit code 99 if ""file.exe"" is present in the current working directory
Exit1.au3 - which uses the RunWait function to call mytest.bat, and capture the exit code returned in $Result.
$Result is set to 100 prior to calling RunWait.

When the compiled Exit1.exe runs on Windows 7 - the behaviour is as expected - either a 99 or 1 is displayed as the value of $Result.
When the same Exit1.exe runs of Windows XP - $Result is always 0.

I have discussed this on the forum, however there have been no solutions identified to-date.
Thread: RunWait behaviour on XP and W7

I have also observed the same behaviour using the following other functions: ShellExecuteWait and _RunDos."	Bug	closed		AutoIt	3.3.14.1	None	No Bug	RunWait; XP	
