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.
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!