[Java] Question about Runtime.exec

xiaoxiao2021-03-06  36

I tried it all night last night, I got an experience.

Runtime.exec ("text")

The content of the text must be executed on the DOS or platform, such as Runtime.exec ("Move C: //a.txt C: /////") will definitely not perform, so you can only use a reminder method, Move c: /a.txt C: / B / Write inside a batch file T, then execute:

Runtime.exec ("T.BAT:")

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

New Post(0)