Re: I need a command line in Windows NT
- From: Alan Krueger <wgzkid502@xxxxxxxxxxxxxx>
- Date: Tue, 28 Jun 2005 19:08:04 -0500
redgambit wrote:
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 ..."
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.
.
- Follow-Ups:
- Re: I need a command line in Windows NT
- From: redgambit
- Re: I need a command line in Windows NT
- References:
- I need a command line in Windows NT
- From: redgambit
- I need a command line in Windows NT
- Prev by Date: Best way to develop in parallel
- Next by Date: Re: Best way to develop in parallel
- Previous by thread: I need a command line in Windows NT
- Next by thread: Re: I need a command line in Windows NT
- Index(es):
Relevant Pages
|