I
I
Ilya2019-03-16 07:09:24
Command line
Ilya, 2019-03-16 07:09:24

How to implement this script?

Guys, we need to implement a script that will restart the computer and increase the counter by 1 with each new start, as well as write something to a file for a given number of starts. I have absolutely no idea how to implement this, I will be very grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MDtox, 2019-03-16
@MDtox

Maybe so
#include
void main()
{
system("shutdown -r -t 0");
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question