Answer the question
In order to leave comments, you need to log in
How to execute a batch file/file when windows wakes up?
Hello everyone
, it's about tablet window 8.1 / 10
question: how to make a bat file execute when waking up or waking up from sleep?
the whole point is that when "sleep / blocking" the bios turns off the power to the sd card, and when the sd wakes up, it's like it's not there.
in this case, some gurus found a way out by running a program that will connect the card.
Answer the question
In order to leave comments, you need to log in
SOLUTION
1. let 's make an event
1.1. block the tablet with the button.
1.2.unlock.
2. Watch event
2.1. We go into the system program "event log"> System
2.2. we look at the wake-up event code, I have code 507 , the source is Kernel-Power
4. create task
4.1. open "Task Scheduler" > Create task
4.2. we give our name to me "Connecting SD"
4.3. go to the tab "Triggers" > Create
4.4. set: "Start task: On event" > set. "Log: System" > "Source: Kernel-Power" > "Event ID 507" > click OK.
4.5. in the tab "Actions" > Create > specify the program to be launched.
4.6 since it's a tablet, it's a contribution. "Conditions" > uncheck "Run when powered from the mains"
That's it, it's done.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question