Article View: borland.public.jbuilder.java.language
Article #18594WIN 95 and NT Workstation Difference
From: Stickney
Date: Thu, 28 May 1998 00:00
Date: Thu, 28 May 1998 00:00
35 lines
1687 bytes
1687 bytes
HI,
I am calling a external program using a command line execute. The path is
made up of a variable coming from the batch file. This seems to work fine on
a NT workstation, but when running the same program on a Win 95 PC the
program does not run.
The program is called when a button is pressed. Below is the sample call.
void buttonControl1_actionPerformed(ActionEvent e) {
String[] lsParameters=new String[3];
Process ExecProcess;
lsParameters[0]=TickitApplication.getReportPath()+"controlframework.exe";
lsParameters[1]=TickitApplication.getReportPath()+"controlframework.rpt";
// lsParameters[0]="c:\\reports\\controlframework.exe";
// lsParameters[1]="c:\\reports\\controlframework.rpt";
lsParameters[2]="'"+'"'+((String)choiceControl1.get())+'"'+"'";
try{
ExecProcess = Runtime.getRuntime().exec(lsParameters); // The the Delphi
interface Program
}
catch(Exception rload)
{
STDebug.printException(rload,"Loading Report Interface Program");
}
If the path is hardcoded then it works on WIN 95 as well. If anyone has had
a similar problem or know of a solution please email me.
Any help will be very much appreciated
Technical Details
Message-ID:
<6ki9gp$avk1@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,4879e113b8bbaba8,start X-Google-Attributes: gidf74b3,public From: "Stickney" <stciney.k@synergy-int.co.nz> Subject: WIN 95 and NT Workstation Difference Date: 1998/05/28 Message-ID: <6ki9gp$avk1@forums.borland.com> X-Deja-AN: 357134303 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language