Wrunking system file EXE

xiaoxiao2021-03-06  41

1.0 Call the Windows System with the Windows System with Java, such as Notepad, Calc, Calc, Calc, Calc, Calc Static Void Main (String Args []) {Runtime Rn = Runtime.Getruntime (); Process P = null; try {p = Rn.exec (NOTEPAD);} catch (exception e) {system.out.println ("ERROR EXEC NOTEPAD");}}} 2.0 calls other executable, such as the EXE produced, or downloaded installed Software public class demo {public static void main (string args []) {runtime rn = runtime.getime (); process p = null; try {p = rn.exec ("/" d: /anyq/anyq.exe/ "");} Catch (exception e) {system.out.println ("Error Exec Anyq");}}}

转载请注明原文地址:https://www.9cbs.com/read-62848.html

New Post(0)