Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.
set CRITICALLEVEL=50 for /f "skip=1" %%a in ('wmic path Win32_Battery get EstimatedChargeRemaining') do if %%a gtr 0 set BATTERYLEVEL=%%a if %BATTERYLEVEL% leq %CRITICALLEVEL% goto CRITICAL if %BATTERYLEVEL% gtr %NOPOWERLEVEL% goto UPDATEFIRMWARE :UPDATEFIRMWARE Echo Firmware about to install Echo Battery life is at %BATTERYLEVEL% goto eof :CRITICAL Echo Battery is too low to update Echo Battery life is at %BATTERYLEVEL% :EOF Echo Done
|I have a batch file from here that checked if the folder existed and renamed it. Can someone help||6||74|
|SQLCMD: launch a .sql with Windows authentication user||6||40|
|how to split multiple lines delimiter :||8||55|
|regedit.exe REG ADD problems||2||17|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
9 Experts available now in Live!