Automatically run a script when I log on to Windows
- by Hallgrim
How can I automatically run a script when I log on to Windows?
I'd like to run this whenever I log into my computer:
echo %USERNAME% logged on at %DATE% %TIME% >> log.txt
A bonus would be to be able to run the same script whenever I unlock the screen saver as well.