Why are you trying to do this in an applet? I'd think there would be serious security problems ( i.e. run "format c:" instead of "notepad.exe" ), as well as platform dependency problems ( What happens when someone surfing the 'Net on their Mac or Linux box tries to run your applet? ) with this concept...
Sorry if I sound mean , but perhaps there is another way to reach the results you want to get from this without doing it through notepad...
P.S. - Please re-register with a name that conforms to the JavaRanch naming convention... Please register with a name in the format of "first name" + space + "last name". ( Something like "aayush patel" maybe? ) Thanks!
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I think she's lovely. It's this tiny ad that called her crazy:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop