Yup, thats what I found too. At least with the screen saver, it usually does kick in. And if you want to have a regular screen saver, you can just have the batch call it up at the end (or at the start I presume) from c:\windows\system32\nameofscreensaver.scr.
Btw, here is the batch file I've created (window will be minimized)
Code:
if not "%minimized%"=="" goto :minimized
set minimized=true
start /min cmd /C "%~dpnx0"
goto :EOF
:minimized
TASKKILL /F /IM nameoftask.exe /FI "STATUS eq RUNNING"
TASKKILL /F /IM nameoftask.exe /FI "STATUS eq RUNNING"
TASKKILL /F /IM nameoftask.exe /FI "STATUS eq RUNNING"
start iexplore
If you want to completely hide the cmd window from showing, you can have this vbs call up the batch file
Code:
Const HIDDEN_WINDOW = 12
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objStartup = objWMIService.Get("Win32_ProcessStartup")
Set objConfig = objStartup.SpawnInstance_
objConfig.ShowWindow = HIDDEN_WINDOW
Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process")
errReturn = objProcess.Create("nameofbatchfile.bat", null, objConfig, intProcessID) Just remember to either put the batch file in c:\windows\system32, or edit the vbs to include the path where you want to call the batch file from. Obviously you can use this vbs to hide any process/application.