> Hello,
> I could really use your help. I have this JAVA program and it needs to
[quoted text clipped - 14 lines]
> This code works fine in 98 with with cmdLine6 set as "start command /c
> ..."
When you say "Windows NT", do you mean NT 4.0 or an NT-derived OS like
Windows 2000, XP, etc.? I don't believe the Windows NT 4.0 command
shell understood UNC paths.
redgambit - 29 Jun 2005 15:29 GMT
> > Hello,
> > I could really use your help. I have this JAVA program and it needs to
[quoted text clipped - 18 lines]
> Windows 2000, XP, etc.? I don't believe the Windows NT 4.0 command
> shell understood UNC paths.
Sorry I mean NT 4.0...would it work on XP?
redgambit - 29 Jun 2005 15:59 GMT
Its weird because I also have this in my program
String cmdLine5 = "\\\\a1\\scripts\\licensesign";
try {
Process process = Runtime.getRuntime().exec(cmdLine5);
}
catch (IOException ioe) {
System.out.println(ioe);
and it works fine. Also if I open the task manager and watch it the
processes CMD shows up on Processes tab but doesn't run and doesn't
show up on the Applications tab like its suppost to.
William Brogden - 29 Jun 2005 16:57 GMT
> Its weird because I also have this in my program
>
[quoted text clipped - 9 lines]
> processes CMD shows up on Processes tab but doesn't run and doesn't
> show up on the Applications tab like its suppost to.
You may have to provide for consuming the Process output streams before
the program will run to completion. See the JavaDocs for Process for
a discussion.
Bill

Signature
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Knute Johnson - 29 Jun 2005 17:07 GMT
> Its weird because I also have this in my program
>
[quoted text clipped - 9 lines]
> processes CMD shows up on Processes tab but doesn't run and doesn't
> show up on the Applications tab like its suppost to.
Are you handling STDIN and STDOUT for your command line program? If not
it can hang.

Signature
Knute Johnson
email s/nospam/knute/
> String cmdLine6 = "cmd \\\\a1\\scripts\\clientconvert.exe";
> try {
> Process process = Runtime.getRuntime().exec(cmdLine6);
you don't need CMD to exec an exe file. See
http://mindprod.com/jgloss/exec.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.