क्या मैं अपने कंप्यूटर की बैटरी की निगरानी के लिए कार्य शेड्यूलर का उपयोग कर सकता हूं?

विषयसूची:

क्या मैं अपने कंप्यूटर की बैटरी की निगरानी के लिए कार्य शेड्यूलर का उपयोग कर सकता हूं?
क्या मैं अपने कंप्यूटर की बैटरी की निगरानी के लिए कार्य शेड्यूलर का उपयोग कर सकता हूं?

वीडियो: क्या मैं अपने कंप्यूटर की बैटरी की निगरानी के लिए कार्य शेड्यूलर का उपयोग कर सकता हूं?

वीडियो: क्या मैं अपने कंप्यूटर की बैटरी की निगरानी के लिए कार्य शेड्यूलर का उपयोग कर सकता हूं?
वीडियो: How to Get Files Off a Computer That Won't Turn on | Recover Files From Hard Drive That Won't Boot - YouTube 2024, अप्रैल
Anonim
यदि आप अपने लैपटॉप के बैटरी चार्ज स्तर पर नज़दीकी नजर रखना चाहते हैं, तो आप काम करने में व्यस्त होने पर इसकी निगरानी करने में अंतर्निहित तरीके की तलाश कर सकते हैं। क्या कोई है या आपको कस्टम समाधान की आवश्यकता है? आज के सुपर यूज़र क्यू एंड ए पोस्ट में बैटरी मॉनीटरिंग रीडर के सवाल का जवाब है।
यदि आप अपने लैपटॉप के बैटरी चार्ज स्तर पर नज़दीकी नजर रखना चाहते हैं, तो आप काम करने में व्यस्त होने पर इसकी निगरानी करने में अंतर्निहित तरीके की तलाश कर सकते हैं। क्या कोई है या आपको कस्टम समाधान की आवश्यकता है? आज के सुपर यूज़र क्यू एंड ए पोस्ट में बैटरी मॉनीटरिंग रीडर के सवाल का जवाब है।

आज का प्रश्न और उत्तर सत्र हमारे पास सुपरयूसर की सौजन्य है - स्टैक एक्सचेंज का एक उपविभाग, क्यू एंड ए वेब साइट्स का एक समुदाय संचालित समूह।

प्रश्न

SuperUser पाठक MiHa जानना चाहता है कि अपने लैपटॉप पर बैटरी स्तर परिवर्तन के लिए कार्य शेड्यूलर में कोई कार्य कैसे बनाएं:

I need to create a task in Task Scheduler based on battery level changes. For example, say my laptop’s battery drops from 67 percent to 66 percent charge remaining. How can I run a task based on this event? Does Windows log this at all? I was unable to find information on this anywhere.

बैटरी स्तर परिवर्तन के लिए आप कार्य शेड्यूलर में कोई कार्य कैसे बनाते हैं?

उत्तर

SuperUser योगदानकर्ता डेविडपोस्टिल का जवाब हमारे लिए है:

I Need to Create a Task in Task Scheduler Based on Battery Level Changes

Windows does not log this kind of information/details as events. You can, however, use something like the batch file below and create a custom event.

Battery.cmd

This batch file monitors the current battery percentage charge and creates a user defined event if the charge drops below a user defined threshold value.

Notes:
Notes:
  • The eventcreate command works on Windows XP up to and including Windows 10. It requires administrator privileges to work.
  • Set _threshold as required.
  • If the battery falls below this value, an event with ID 999 will be generated in the APPLICATION event log with the description “Battery charge has dropped”.
  • Modify the eventcreate command as required for your situation.
  • Modify the timeout delay as required for your situation.

Example Output

My battery currently has a charge of 81 percent. I set the threshold to 82 percent. Here is what happens when I run Battery.cmd:

And here is the new entry in the Event Log:
And here is the new entry in the Event Log:
Image
Image

EventCreate Syntax

Image
Image

Further Reading

  • An A-Z Index of the Windows CMD Command Line – An excellent reference for all things Windows command line related.
  • eventcreate – Create a custom event in the Windows Event Viewer.
  • schtasks – Create or edit a scheduled job/task. The job can be created on a local or remote computer.
  • wmic – Windows Management Instrumentation Command.

स्पष्टीकरण में जोड़ने के लिए कुछ है? टिप्पणियों में विचार व्यक्त करो। अन्य तकनीक-समझदार स्टैक एक्सचेंज उपयोगकर्ताओं से अधिक उत्तरों पढ़ना चाहते हैं? यहां पूर्ण चर्चा धागा देखें।

छवि क्रेडिट: डेविडपोस्टिल (सुपर यूज़र)

सिफारिश की: