Is there a way I can run a batch file upon locking my computer, and then run another batch file when I unlock it? (Windows 8.1)
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
As user294496 pointed out, one of the fastest ways to do this would be to set a "Scheduled Task" up to execute your batch files at lock/unlock.
Another option would be to take a look here and see if this little GUI tool that somebody wrote for something similar might be a better option for you if you don't want to do this using scheduled tasks. If you are interested in writing some C#, I'll bet it wouldn't be too difficult to write a utility similar to this.