Jump to content
Sign in to follow this  
h711

How do I save tasks status before restart the window and load it after Windows started?

Recommended Posts

h711

Hi, I have a script that needs to do a list of tasks. After each task been completed/cancelled, I need the script to restart the Windows OS. My problem is, if the script restarts Windows, all tasks will be lost and it has to start over again. I need a way to save the status/results and load it after Window got restarted.

What I can think of so far is to save all the tasks in a notepad. Before restart the OS, update the notepad and save all the status. After OS restarted, read the notepad to get infor. But this is not an easy way, as I need the script to seach and update the notepad. "Send" command is not very ideal for this task.

Is there is better way to deal with this?

Thanks!!!

Share this post


Link to post
Share on other sites
i542

Tried to use FileWrite / FileRead command?


I can do signature me.

Share this post


Link to post
Share on other sites
dbzfanatic

You could use an ini file to write what's been done or you could number the tasks and write a regkey to read. Once you know the task number you can start from there. You could also write a regkey to the RunOnce and pass parameters to your script to tell it where it left off.

Share this post


Link to post
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
Sign in to follow this  

×