hoe to use Runtime.getRuntime.exec

i am having a XL file in "D:\velu\JAVA\workspace" in this path with filename "Velu_12-23-2006.xls". i need to open this file using

Runtime.getRuntime().exec method.

i tried this in two ways as

1.Runtime.getRuntime().exec("Velu_12-23-2006.xls")

2. Runtime.getRuntime().exec("D:\velu\JAVA\workspace\Velu_12-23-2006.xls")

in both cases the IOException is thrown saying UNKNOWN SOURCE.

Plz, analyse this and teach me.

[465 byte] By [Er.Vela] at [2007-11-26 13:41:35]
# 1

It is Window's command processor that handles file extensions:

Windows NT and later

Runtime.getRuntime().exec(new String[]{"cmd.exe","/C","Velu_12-23-2006.xls"});

before Windows NT

Runtime.getRuntime().exec(new String[]{"command.exe","/C","Velu_12-23-2006.xls"});

Caffeine0001a at 2007-7-7 23:58:14 > top of Java-index,Desktop,Runtime Environment...