A command prompt would come up and say 'Windows does not recognize (new file name)'
After a bit of investigation, I have found that the command for the runtime process needs to have a destination/working directory where the program is stored.
Here is what I am attempting to do:
String command="(path of program)/name of program.exe /(upload file #1)=(path file#1) /(upload file #2)=(path file#2) /(output file name)=(name for output) /exit"
That is to say that the variable command=the path of the *.exe program, space, forward slash, program recognition code, equals sign, first needed file, space, forward slash, program recognition code, equals sign, second file needed, space, forward slash, program recognition code, equals sign, output name, space, /exit.
The java command: Process p=Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL "+ command); //command is a variable
p.waitFor();//to allow the program to terminate before proceeding.
Since this is an *.exe it needs to have certain addional files not listed in the original command line prompt from the Java code, in order to execute.
Could you also tell me how to set the correct directory so that the command line would know where to find the necessary files to execute the *.exe? I have tried to use the System.getenv(...) method, but that didn't work.
Again thank you, and anyone else willing to help!
--Sciocosmist