FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

VBS - PART 2 - Shell Control via VBS

 


gidevelop
This script goes for all the people that are working in IT. As you know most of the big corp's are behind a proxy and in that corp are a lot of dup users witch like to stck ther noses everyware. The users from my institution allways switch the proxy and the home page. Now this is at least DUMB because is only one proxy adres on witch inside connects to outside so no more talking, here are the scripts that you can place them at start-up, create a shortcut to ie through them etc.

Start explorer [start page incorporated] V2 [redundance removed for this version]
Code:


Set WshShell = WScript.CreateObject ("WScript.SHell")
WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\" & "Start Page","www.startpage.com","REG_SZ"
WScript.echo "Applied STAR PAGE - www.startpage.com"

Wshshell.Run ("IEXPLORE.exe")
WScript.Quit 1



USAGE

1] - Save the code to a file named whatever.vbs [very important .vbs]
2] - Change www.startpage.com (both places) to whatever start page you want
3] - If you want it in startup remove the last 2 lines [or leave them as they are if you want ie to launch at startup... but i don't think so]
Reply to topic    Frihost Forum Index -> Computers -> Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.