Batch Script to Generate File/Folder Listing

I was chatting with a friend who had a huge music collection and I wanted to know what all he had. This provoked me to make a batch script which would do the job. I did some research online and found out some basics of batch scripts. This is the final thing which I ended up with.

@echo Directory listing will be created at c:\dirList.txt
@dir %1 /S > c:\dirList.txt
@echo Opening c:\dirList.txt in Notepad
@notepad c:\dirList.txt
@pause

I think it’s self explanatory. But still, I’ll go ahead and explain.

1. Prints “Directory listing will be created at c:\dirList.txt”

2. dir is a command which will print the list of directories and files. %1 is a variable which will contain the location from where you run this script. /s is a switch for Continue reading Batch Script to Generate File/Folder Listing

Beginning Programming with Java: Installing JDK (for Windows)

This was first posted in my old, dead blog "Jazzed Up!" on Jan 28, 2008 11:17 AM

Wanted to learn java but never knew where to start? Well, if you have ever tried downloading the Java SE Development Kit (JDK), you might have found out that just installing it does not let you start programming right away! There are a few things to be taken care of. For people who came here looking for instructions after downloading the JDK, skip to the installation part.

Step 1: Downloading the Java Development Kit

For any programming language, you need to get some necessities in order to begin. For beginning programming in java, you’ll need the Java Development Kit. When I’m writing this, the latest version seems to be JDK 6 Update 4. So download it. If you are having problems downloading, I’ll outline the steps quickly.

Select platform: Windows, check I agree to the Java SE Development Kit 6 License Agreement (I doubt if anyone’s going to read this!?) and click Continue. Check the Windows Offline Installation and press Download Selected with Sun Download Manager. You’ll get a downlaod prompt for a .jnlp file. Either Continue reading Beginning Programming with Java: Installing JDK (for Windows)