Posts Tagged ‘command prompt’

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 ... Full story

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 ... Full story
Copyright © 2010 ViralPatel.net. All rights reserved.