Sunday, August 03, 2008

Nircmd -- Freeware command-line tool

This is a great tool that I use to in some simple batch commands. Here's an example:

SS.BAT:
@start nircmd screensaver
@exit

What this does it start the screen saver. Now I can click on >Start>Run and type SS and the screensaver will start ... very useful.

'nircmd' has various commands you can use ...

Open the door of J: CD-ROM drive

nircmd.exe cdrom open j:

Close the door of Y: CD-ROM drive

nircmd.exe cdrom close y:

Turn off the monitor

nircmd.exe monitor off

Close the door of Y: CD-ROM drive

nircmd.exe cdrom close y:


There are many other commands ... but I find these the most useful. I can type them by hand .. or create a little batch command to run.

Take a look at 'nircmd' ... a shart little tool I like to keep around.

http://www.nirsoft.net/utils/nircmd.html
are times when your browser (Firefox or IE) just starts to have problems that you really can't explain. Certain pages don't 'open' ... you get 'File Not Found' errors ..