running external programs
hi? how do i repeatedly run an external file with arguments in a java program?
example, i have to run an exe file named visual which takes in 3 arguments: label, ski, labeloutput:
visual -din label -cout skin -dout labeloutput
i have to put this in a loop and change label and labeloutput for every loop. when i make it dis way:
Runtime rt = Runtime.getRuntime ();
Process proc = rt.exec ("visual -din" + label + ".dat -cout skin.cod -dout" + labeloutput);
it does not work anymore and the process ends even before it's finished.how do i solve this? thank you.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL