Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3162 closed Bug (No Bug)

RunWait command does not return the exit code of the program that was run on XP systems

Reported by: PTim Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.1 Severity: None
Keywords: RunWait; XP Cc:

Description

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.

Attachments (2)

exit1.au3 (430 bytes ) - added by PTim 10 years ago.
Sample AutoIt test file to show the issue
mytest.bat (150 bytes ) - added by PTim 10 years ago.
Sample batch file that Exit1.au3 calls via RunWait

Download all attachments as: .zip

Change History (5)

by PTim, 10 years ago

Attachment: exit1.au3 added

Sample AutoIt test file to show the issue

by PTim, 10 years ago

Attachment: mytest.bat added

Sample batch file that Exit1.au3 calls via RunWait

comment:1 by PTim, 10 years ago

Please close this bug. A poster on the forum assisted in identifying that the issue is OS related rather than Autoit.
Apologies

comment:2 by BrewManNH, 10 years ago

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.