@echo off
pushd "%~dp0"
set minDays=31
set activator=KMSnano.exe
TriggerKMS.exe %minDays% %activator% /install /battery
popd
pause
exit

-- TriggerKMS v9 designed for .NET 4
-- Change minDays to the days you want Trigger the KMS activator
-- example: your activation has 60 days remaining
-- if you use minDays=61 the trigger will run the activator executable
-- the maximun is minDays=179
-- Copy TriggerKMS.exe in the same folder of KMSnano.exe or any other .exe
-- Change activator=program.exe you use
-- Use /log to make %temp%/TriggerKMS.log file
-- Use /install to make the autotask scheduler.
-- Use /pause to pause before exit
-- Use /battery to install the task schedule running in laptops with battery power supply.
-- Thanks to hui for testing and suggestions.

Change Log:
- Detect Office2013 in W7.