Open a website in a browser from commandline

My attempt to open a website in command prompt or a batch file.

I found that, for Windows, I could run


In batch script, I can do:

start explorer

Ps. Actually, I don’t really have to use start 🙂

In Linux, we should be able to run


(if there is Firefox)

Java JDK 6 also supports it using Browse class:


Auto Shutdown for Windows XP

There is a shutdown command in Microsoft Windows. To use the command go to Start > Run and start typing.

For example:

shutdown -s -f -m \\myComName -t 10800 -c “I will shutdown by myself”

-t take time in seconds as parameter.

Please replace myComName with the actual computer name.

To find out the computer name,

1. Right click at My Computer

2. Properties

To cancel type:

shutdown -a

This is a link to a full documentation on Microsoft’s website: