Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个问题我想在 java 程序中发送代码 pscp 我想发送这个代码 root@1xx.2xx.3X.1x:/usr/local/se/log c:/
您可以使用 Runtime 类在 Java 程序中运行本机脚本:
class Test { public static void main(String[] args) { Runtime.getRuntime().exec("pscp.exe C:\xm root@1xx.2xx.3X.1x:/usr/local/se/log "); } }