Topic: how to start another application with a servlet (for example, to perform a batch file) Author: lovemmz (mmz) credit value: 100 Quantity Forum: Java J2EE / EJB / JMS questions Points: 20 Replies: 6 Time: 2003-11 -24 11: 25: 09JAVA program to perform the writing of the command line program
Reply to: Takecare (Hall) () Reputation: 121 2003-11-24 11:37:00 Score: 0 Public Static Void Main (String [] ARGS)
{
Try
{
Runtime.Getruntime (). EXEC ("cmd / c copy bb.java bbb.java");
} catch (exception e) {
E.PrintStackTrace ();
}
}
TOP
Reply to: Lovemmz (MMZ) () Reputation: 100 2003-11-24 16:32:00 Score: 0 Thank you Takecare (Hall) Friends.
TOP
Reply to: Tesge () Reputation: 100 2003-11-24 17:14:00 Score: 0 did not understand what cmd / c copy bb.java bbb.java mean?
TOP
Reply to: Acylas (Acylas) () Reputation: 100 2003-11-24 17:20:00 Score: 0 is a DOS command, as long as you can run in MS-DOS, runime.getRuntime (). EXEC can run
TOP
Reply to: Tesge () Reputation: 100 2003-11-24 19:34:00 Score: 0 Sorry, if I want to show the contents of the C disk, how to write
Runtime.Getruntime (). EXEC ("C: // Dir");
TOP
Reply to: Tesge () Reputation: 100 2003-11-24 20:08:00 Score: 0 has been resolved
Ayuan
9CBS certified blog expert
Blog expert
Huawei old employees
Big Data
More than ten years, in Huawei, Internet Corporation's experience, profound understanding and practical experience in CRM, big data, mainly sharing various project experience, including architecture, Java, big data and other articles