Thursday, April 18, 2013

How to start the webpage when user logon by logon script (Handle both 32bits and 64bits Windows machine)

If Exist "C:\Program Files (x86)\" goto X64

start /MAX C:\PROGRA~1\INTERN~1\IEXPLORE.EXE http://intranet.abc.com

:X64

If NOT EXIST "C:\Program Files (x86)\" goto END

start /MAX "C:\PROGRA~1 (x86)\INTERN~1\IEXPLORE.EXE" http://intranet.abc.com

:END

Print Friendly and PDF
Share/Bookmark

No comments:

Post a Comment