Abhinav Kar

How to execute a command prompt command & view output in Java

How to execute a command prompt command & view output in Java
The basic part is very easy. To do this, we will use the Runtime’s exec method. The code would be like:Runtime rt = Runtime.getRuntime(); Process proc = rt.exec("ping localhost");The command (I’ve used “ping localhost” ) can be anything that your command prompt recognizes. It will vary on UNIX and Windows environment.Now comes the bit where you would ...

Hiding an Extension

Hiding an Extension
Windows of this era provide a feature that by default hides extensions of files. They choose to display the filename alone – minus the extension. This “feature”, as per Microsoft, is supposed to “reduce clutter in folder windows”.It cropped up first in XP and was added in all subsequent versions including Vista as well as the upcoming Windows 7.Many of you who store a ton of ...

Creating Customized Search Plug-ins for Firefox or IE7+

Creating Customized Search Plug-ins for Firefox or IE7+
Some folks may need to search some of their "special-interest" sites. Me being a World of Warcraft fanatic, I’m talking about sites like Thottbot, Wow-armoury etc.Till now, the options for that special search were thus: 1. Visit the site you want to look-up and then search 2. Google and then rifle thru the results looking for that one site 3. For the more geeky ones, ...
Copyright © 2012 ViralPatel.net. All rights reserved.