I recently saw that a colleague of mine had written a Java program to generate a simple HTML index of all the sub-directories of a given directory. I felt that the task could be accomplished with even more control if we just had a Windows batch script which does the same, eliminating the need for any JVM.
I've christened this script,
indexer.bat so that it's easy to remember.
“Necessity is the mother of invention” turned true to me this weekend as I wrote this script. Consider this. You go on a weekend outing with your friends and end up taking hundreds of snaps using your favourite digital camera.
You come home and download all the pictures to your laptop. Everything is fine about the pictures and all your friends are happy with the image quality. But, you being a perfectionism and systematism freak, somehow don’t like to have those “.JPG” extensions to your files. You wish you could change the extensions of all those files to “.jpeg” in one shot.03 Nov 2007
Often we encounter situations where the only solution to a certain Java problem is to decompile the contents of an entire JAR file, edit the resulting the source, rebuild and repackage before using.
I searched a lot for decompilers which could recursively decompile multiple class files while preserving the package hierarchy, but in vain. So, I thought of writing a Windows batch script myself, to do what I was looking for. This script is also known as JAR decompiler or recursive JAD.30 May 2007
If you use Windows, you must have realized that Command Prompt is one of the most frequently used programs. There are many times when we wish to open a Command Prompt to start in a certain directory. For example, how nice would it be if we could just right click on a deep directory and open a Command Prompt window to start from there!19 Sep 2006