I need a command line in Windows NT



Hello,
I could really use your help. I have this JAVA program and it needs to
call an outside program. I used the following code to do so.

boolean OldC = NUFile.fileExists(Acc + "\\Client.c");
if (OldC == true) {
//String cmdLine6 = "\\\\a1\\scripts\\clientconvert.exe";
doesn't work
String cmdLine6 = "cmd \\\\a1\\scripts\\clientconvert.exe";
try {
Process process = Runtime.getRuntime().exec(cmdLine6);

}
catch (IOException ioe) {
System.out.println(ioe);

This code works fine in 98 with with cmdLine6 set as "start command /c
...."
I know java isn't a scripting language but I really need this program
and it to run in a command line. I actually can't even get a command
prompt, so if I could just get a command line that would help. I've
been all over the net and can't find anything that works.

Thank you.

.



Relevant Pages

  • Re: Best ways to start off Java programs with C & RPG???
    ... Can you recommend some settings for a smallish Java program? ... What about the 'command to run' field? ... While such things run as a background task, ...
    (comp.sys.ibm.as400.misc)
  • Re: Best ways to start off Java programs with C & RPG???
    ... explanation that follows, which I'm doing from memory, doesn't help, let me ... On the command line enter CALL QCMD. ... let your Java program run as a separate job. ... While such things run as a background task, ...
    (comp.sys.ibm.as400.misc)
  • Re: Best ways to start off Java programs with C & RPG???
    ... let your Java program run as a separate job. ... If you can start the command from a green screen command line, ... so lines if you aren't passing any parameters) and call it from the RPG. ... While such things run as a background task, ...
    (comp.sys.ibm.as400.misc)
  • proc.getErrorStream never empties.
    ... When I run a java program which does a ... to run a process on Windows (aha, ... synthesized from the error code and contents of the error stream. ... but build up the command, see the end of the above eexception message for the ...
    (comp.lang.java.programmer)
  • Re: Simple Java Problem
    ... > Linux/Java configuration questions it seems ... > the helper needs to guess the actual problem ... better to have a working java program first than to learn the ... > of the command line. ...
    (comp.lang.java.help)