Javascript to activate another window in a session via AppActivate function

<script type="text/javascript">     function activatewindow(){         wshShell = new ActiveXObject("WScript.Shell");         wshShell.AppActivate("Script");     } </script> <div id="bottom" align="center"><div style="width:80px; padding-top:32px; cursor:pointer;" onclick=activatewindow()></div></div> </div>   Important Notes: AppActivate, accepts the Windows Title as the argument and operates on those values.  It supports partial name match by default. That is you can give any of a window title and that respective window will be activated. If there are multiple windows matching the text of Window title, no operation will be done and no Window change would happen If there are multiple Windows whose titles match the text you choose, then you need […]

Read more

Quick Batch Script to start couple of commands for runas user

  runas /user:temp "cmd /k start iexplore && start C:ProgramDataMicrosoftWindowsStartM~1Q-Dir.lnk && cd\"   C:UsersTestUSR1>runas /user:temp "cmd /k start iexplore && start C:ProgramDataMicrosoftWindowsStartM~1Q-Dir.lnk && cd\" Enter the password for temp: Attempting to start cmd /k start iexplore && start C:ProgramDataMicrosoftWindowsStartM~1Q-Dir.lnk && cd as user "TESTPC1temp" … C:UsersTestUSR1>

Read more