Enable/Disable /Change IE Proxy by script/programmatically

Ok. You know the drill, you need to use the company’s proxy server at work and at home you don’t need a proxy server.(or you use another one)

Well, do you really want to open up IE and go into Tools->Internet Options->Connections->LAN Settings->Proxy Server to change the address or disable/enable it?

(You can actually open Internet Options from Control Panel without opening up IE, but anyway, it still is a long process.)

As everything useful is done in Registry in Windows, we again have some registry scripts.

Read the rest of this entry »

Advertisements

How to create a shortcut to safely eject devices

Just right click anywhere in a folder select New->Shortcut.

As the path to the shortcut, write this:

%windir%\system32\RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll

 image

Now, whenever you double-click that shortcut, it will open up the “Safely Remove Hardware” dialog.

You can actually do better by selecting “Properties” from the context menu of the shortcut, and assigning a hotkey for it. Now, you don’t need to search for the icon in the system tray. You just have to press a hotkey. Hope it increases your productivity a little bit. 🙂

 

By the way, you can also execute the path above programmatically to get the “Safely Remove Hardware” dialog.