Opened 15 years ago

Closed 15 years ago

#699 closed Bug (Completed)

Shutdown(5) Failing

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


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")

Attachments (0)

Change History (5)

comment:1 Changed 15 years ago by Jpm

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

comment:2 Changed 15 years ago by kjcdude@…

No problem. I meant force shutdown, not restart.

Windows XP Home SP2

comment:3 Changed 15 years ago by Valik

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 Changed 15 years ago by Jpm

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 Changed 15 years ago by Jpm

  • Milestone set to
  • Owner set to Jpm
  • Resolution set to Completed
  • Status changed from new to closed

Added in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jpm.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.