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

explorer https://waoewaoe.wordpress.com

In batch script, I can do:

start explorer https://waoewaoe.wordpress.com

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

In Linux, we should be able to run

firefox https://waoewaoe.wordpress.com

(if there is Firefox)

Java JDK 6 also supports it using Browse class: http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html#browse(java.net.URI)

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: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/shutdown.mspx?mfr=true