Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q4078 In C, I can use the system function to execute DOS-like commands e.g system("dir"); is there an equivalent in Java?

You are here: irt.org | FAQ | Java | Q4078 [ previous next ]

Please check out the "java.lang.Runtime" package. There you have methods like:

Runtime r = Runtime.getRuntime();
r.exec("c:\\yourfolder\\your.exe");

©2018 Martin Webb