hi v, notepad is a name of the executable for the Notepad and similarly you should be able to use the executable for the excel that is 'excel.exe'. u might have to give the full path to the exe of the excel on ur machine... try it..i don't have ms excel right now on my machine so i can't comment more.. regards maulin
you would have to give the path of excel.exe for it to get working...as notepad.exe is in \windows folder...but same is not with excel.exe so put Runtime.getRuntime().exec("<path>/excel.exe"); this shud work MB
You can also exec RunDLL32 to launch a file. This seems to be exactly like double-clicking a file in Windows Explorer. The benefit is that you don't have to know the path to the Excel executable. Here's an example you'll find thousands of places on the web for launching a URL into IE. The file can be an Internet URL like this one, or a local file. What they don't all say is that you can launch any file with an association this way.
Copy the part in quotes and type it into a dos box for fun.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi