Modify

#699 closed Bug (Completed)

Shutdown(5) Failing

Reported by: kjcdude@… Owned by: Jpm
Milestone: 3.3.1.0 Component: AutoIt
Version: 3.2.13.11 Severity: None
Keywords: Cc:

Description

On about 1/20 of the 600 pcs i run this script on the 2nd lat line of code fails and doesn't force restart the pc. The pc stays on as if no command to restart has been sent.
I've only seen an issue in v3.2.13.11

Last few lines of code.

status($to, "Finished - Please Wait ~10 Seconds For The Program To Close")
sleep(1000)
ProgressOff()
Shutdown(5)
Exit

Attachments (0)

Change History (5)

comment:1 by Jpm, on Nov 23, 2008 at 11:53:46 AM

which OS version are they running with?
When you subt a ticket you must describe the environment you encouner the trouble.
Thanks

comment:2 by kjcdude@…, on Nov 25, 2008 at 11:03:48 PM

No problem. I meant force shutdown, not restart.

Windows XP Home SP2

comment:3 by Valik, on Nov 27, 2008 at 3:53:49 AM

Does the user the script is running as have the ability to shut down the PC? Is the user the script running as also the interactive user?

comment:4 by Jpm, on Jan 31, 2009 at 5:42:29 PM

I am closing this ticket just adding an setting of @error to GetLastError().
If the problem occurs please check Shutdown() return value and see what the error code is.

comment:5 by Jpm, on Jan 31, 2009 at 5:48:09 PM

Milestone: 3.3.1.0
Owner: set to Jpm
Resolution: Completed
Status: newclosed

Added in version: 3.3.1.0

Modify Ticket

Action
as closed The owner will remain Jpm.

Add Comment


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