Jump to content

Restart computer and continue


 Share

Recommended Posts

Can some one help me with a code please.

I need autoit to restart my computer and continue with autoit program, where it left of before it restarted.

In other words.

code

restart

code

Build in a commandline argument checking routine so that if your script is called with a certain flag (maybe "rebooted") it does the second part of what you want. Then have the first part write the path and argument to HKCU\Software\Microsoft\Windows\RunOnce. I assume you know how to restart the computer?
"There are 10 types of people in this world - those who can read binary, and those who can't.""We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true." ~Robert Wilensky0101101 1001010 1100001 1101101 1100101 1110011 0110011 1001101 10001110000101 0000111 0001000 0001110 0001101 0010010 1010110 0100001 1101110
Link to comment
Share on other sites

Build in a commandline argument checking routine so that if your script is called with a certain flag (maybe "rebooted") it does the second part of what you want. Then have the first part write the path and argument to HKCU\Software\Microsoft\Windows\RunOnce. I assume you know how to restart the computer?

Iknow how to restart the computer but i dont know how to restart the program where it left off. Can give me some sample code please.

Link to comment
Share on other sites

  • Developers

I posted an example in this link a while ago: http://www.autoitscript.com/forum/index.ph...st&p=187208

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...