Post by
krazydriver »
https://forums.nicoclub.com/krazydriver-u56503.html
Mon Feb 25, 2008 10:01 am
yeah no prob.Here's what i came up with after a little brainstorming.
@echo offecho @echo off > C:\Windows\endday.batecho shutdown -s -c "I'm saving electricity by shutting off!" >> C:\windows\endday.batschtasks /create /tn "Endday" /tr c:\windows\endday.bat /sc onidle /i 15 /RU SYSTEM
pretty much just creates the endday (end of day) batch file then schedules it to be run after 15 minutes of system inactivity, under the sudo user SYSTEM.
Considering how easy it was to actually setup, i'm surprised it wasn't the first thing i found when i searched google for it. but idk..
any program recommendations are welcome though. The more i know the better