How to programmatically enable/disable network interfaces? (Windows XP)

Using the netsh interface Usage set interface [name = ] IfName [ [admin = ] ENABLED|DISABLED [connect = ] CONNECTED|DISCONNECTED [newname = ] NewName ] Try including everything inside the outer brackets: netsh interface set interface name=”thename” admin=disabled connect=DISCONNECTED newname=”thename” See also this MS KB page: http://support.microsoft.com/kb/262265/ You could follow either of their suggestions. For … Read more

installing JDK8 on Windows XP – advapi32.dll error

This happens because Oracle dropped support for Windows XP (which doesn’t have RegDeleteKeyExA used by the installer in its ADVAPI32.DLL by the way) as described in http://mail.openjdk.java.net/pipermail/openjfx-dev/2013-July/009005.html. Yet while the official support for XP has ended, the Java binaries are still (as of Java 8u20 EA b05 at least) XP-compatible – only the installer isn’t… … Read more

Use clipboard from VBScript

Another solution I have found that isn’t perfect in my opinion, but doesn’t have the annoying security warnings is to use clip.exe from a w2k3 server. Set WshShell = WScript.CreateObject(“WScript.Shell”) WshShell.Run “cmd.exe /c echo hello world | clip”, 0, TRUE Example with a multiline string as per question below : Link1 Dim string String = … Read more

Download the Android SDK components for offline install

To install android component do following steps Run android sdk manager on offline machine Click on show/hide log window here youu will find all the list of xml files where packages are available Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml Fetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml Validate XML: https://dl-ssl.google.com/android/repository/repository-7.xml Parse XML: https://dl-ssl.google.com/android/repository/repository-7.xml https://dl-ssl.google.com/android/repository/addons_list-2.xml is main xml file where all … Read more