Question : Calling IE to run on second monitor in batch file log in script

Hi All,

- I have a batch file that runs when a user logs in to Windows (XP).

- The script is pretty basic, it just calls two programs, one of them being Internet Explorer (note I run this in kiosk mode).

- The user has limited access on the machine and does not have permissions to start new processes. And if the internet browser shuts down the script logs off the user.

I wish to add to my script the ability to ensure that the IE browser opens on the secondary monitor every time. At the moment I have run and closed the program on the secondary monitor so that it will automatically run on the second but this is an unsatisfactory solution. Also third party software is not an option.

Any suggestions would be greatly appreciated.

slavs

Answer : Calling IE to run on second monitor in batch file log in script

Just modify the Window_Placement key in Internet Explorer before opening IE.

reg add "HKCU\software\microsoft\internet explorer\main" /v Window_Placement /t REG_BINARY /f /d 2C0000000200000003000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0005000000000000FC09000097030000
"C:\Program Files\Internet Explorer\iexplore.exe" -k
Random Solutions  
 
programming4us programming4us