I would like to create a .bat file that has the following qualities:
detect power cable unplug
detect power cable re-plug/reinserted
start when windows starts
detect shutdown and/or power button push (turn off)
play sound on repeat until the correct password is provided
If [X]/exit is pressed while waiting for correct password it will reopen, continue sound and ask for password.
If a user whant to exit the bat it will ask for pass and play sound on repeat.
Basically I want to create a very simple anti theft script
When the power cable in un-plugged/plugged the power usage/option icon on the task bar changes from eather power=100%/power=7-100%/power=(charging)7-99%
The unplug/re-plug is an event windows recognizes. I think This is the hardest part just tried Google and it is mostly going on about USBs and criptocurrencies.
UPDATE: this has something to do with
C:\Windows\system32\svchost.exe -k DcomLaunch
If any one has info on any of the 7 things i want to achieve feel free to reply.... in the mean tim I have found a few bat websites and I will be updating this question as-and-when I discover I will put examples for each parts under here...
------------------------------------------- Anti theft bat Tutorial:
- Create a new txt file then right click and rename > [secure_name].[bat]