Automatically run a script when I log on to Windows
Posted
by Hallgrim
on Super User
See other posts from Super User
or by Hallgrim
Published on 2009-07-30T13:20:35Z
Indexed on
2010/05/14
12:55 UTC
Read the original article
Hit count: 188
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.
© Super User or respective owner