I used the following in Java using Eclipse to run a program by the Runtime command below:
String[] cmd = { "C:\\Program Files\\Windows Live\\Messenger\\msnmsgr.exe",first,third };
notice that first,third are both String variables, now when this command runs the program I want to pass both of them into 2 textboxes. I want these string to be copied into the program i ran textboxes like here. only i need this one thing, how can i pass the strings, and why some of the users told me to use this code to pass the string variables, is it a pointer problem?
You simply cannot do that, unless you can pass the arguments in through the command line you have no way of interacting with a separate program’s interface.