Modify

Opened 17 years ago

Closed 17 years ago

#699 closed Bug (Completed)

Shutdown(5) Failing

Reported by: kjcdude@… Owned by: J-Paul Mesnage
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 J-Paul Mesnage, 17 years ago

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@…, 17 years ago

No problem. I meant force shutdown, not restart.

Windows XP Home SP2

comment:3 by Valik, 17 years ago

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 J-Paul Mesnage, 17 years ago

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 J-Paul Mesnage, 17 years ago

Milestone: 3.3.1.0
Owner: set to J-Paul Mesnage
Resolution: Completed
Status: newclosed

Added in version: 3.3.1.0

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


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