Jump to content

bflmpsvz

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Czech Republic

Everything posted by bflmpsvz

  1. Simply but perfect. Thanks a lot. I do not like this solution, it does not help me. Because if the workstation is "locked" this way, any scheduler trying to set the computer to Stand-by state simply fails (using rundll32 powrprof.dll,SetSuspendState ). The running vb script probably blocks it, so only when one logs in, the computer goes to Stand-by immediatelly . Solution I use at last is based on simple application http://www.jsifaq.com/SF/Tips/Tip.aspx?id=0302 . It simply runs screensaver which is set in Display Properties - Screen saver , but it could be done from ordinary .bat file. Batch file ends and you have the same situation, as if you locked workstation and waited for set time. So my batch looks like this: %windir%\System32\rundll32.exe user32.dll,LockWorkStation "C:\util\savescrn.exe" Now I can run it, comp is immediatelly locked with running screensaver. Lately, scheduler runs VLC, records some on-line multicast session and sets the comp to Stand-by or Hibernate (or Turn off). I am fully satisfied. 11.4.2008: And, because screensaver does not save LCD panels too much, I use this batch: c:\util\nircmd.exe monitor off %windir%\System32\rundll32.exe user32.dll,LockWorkStation See http://www.nirsoft.net/utils/nircmd2.html - handy small command line utility. Again, it does not block the computer to go to Stand-by.
×
×
  • Create New...