Unfortunately, it's not that simple, and here the API can be decieving.
This link should help:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
Greg
-----Original Message-----
From: Abhilash Nair [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 7:24 AM
To: JDJList
Subject: [jdjlist] How to run Command line commands in Java?
Hi All:
Is System.getRuntime().exec("notepad") deprecated?
How do i run commands from java?
Any suggestions on alternatives?
Abhi
=====
You can reach me on:
Weekdays: (617)509-5312
Weekends and evenings: (781)321-2065
Pager: (781)553-8323
Thanks and Regards,
Nair Abhilash R
(Abhi)
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm