• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Get control of your email attachments. Connect all your Gmail accounts and in less than 2 minutes, Dokkio will automatically organize your file attachments. You can also connect Dokkio to Drive, Dropbox, and Slack. Sign up for free.



Page history last edited by David B 11 years, 3 months ago

So, my daughter has this knack for pushing past the time she's supposed to stop using the computer. Using a cron entry under Cygwin, I run "wscript autolock.vbs" at 9:00 Sunday-Thursday and 11:00 Friday-Saturday. autolock.vbs contains:


On Error Resume Next
Set objShell = CreateObject("Wscript.Shell")
objShell.Run "%windir%System32rundll32.exe user32.dll,LockWorkStation"

Note: This works on Windows 2000. It probably works on other Win32s as well.



Comments (0)

You don't have permission to comment on this page.